Visualization - Maple Help

Visualization

Maple 2019 includes a couple new plotting utilities for drawing mathematical shapes

Polygons by Name

The new command plottools,polygonbyname draws shapes in plots. It knows about many mathematical shapes and has many options for creating them exactly as desired. This command is very useful for annotating other plots or building more complex 2-D visualizations. For example, it is used by GraphTheory,DrawGraph to render custom vertex shapes in Graph visualizations.

 >

The size of shapes is primarily controlled by defining the dimensions of a box that should fit entirely inside the shape. Here is a parallelogram that fits a 16x9 box.

 >

Regular polygons with an arbitrary number of sides can be specified by just a number for the name, or as "n-gon", or common name like "hexagon". Here is an animation of calling polygonbyname on the integers 3-36.

 >

In addition to being able to specify the size of the polygon, you can specify its position with the center option and its orientation with the rotation option.

 >

There many other ways to modify the shape with command options: irregular, reuleaux, rounded, star, and wide. Not all options, or combinations of options, are supported for every shape. See the help page for details.

 >
 >

 >
 >

 >

Most of these command options can also be specified as part of the name. Here is a wide irregular 9 pointed star.

 >

Many shapes commonly used in diagrams are known by name.

 >

Generalized Superellipses

The plottools,ellipse and plottools,ellipticArc commands now have a super option that creates superellipses and generalized superellipses or arcs thereof. A generalized superellipse is the locus of points [x,y] satisfying the equation

${\left|\frac{x-\mathrm{x0}}{a}\right|}^{\mathrm{m1}}+{\left|\frac{y-\mathrm{y0}}{b}\right|}^{\mathrm{m2}}=1$

for center [x0,y0], radial distances a and b, and super elliptic parameters m1 and m2. If $\mathrm{m1}\ne \mathrm{m2}$ the curve is a generalized superellipse, and just a superellipse otherwise.

 >

Generalized superellipses have different shapes in the x and y directions. This is most obvious when one of the parameters is less than 1 and the other is greater.

 >

Improved Visualization of Graphs

Many improvements have been made to the rendering of graphs with the DrawGraph command. As well, many new option have been added to customize the style of graphs. For full details see the GraphTheory updates page.

 >
 ${\mathrm{GV1}}{≔}{\mathrm{Graph 1: a directed weighted graph with 5 vertices and 5 arc\left(s\right)}}$ (3.1)
 >

Correlogram

The Correlogram command in the Statistics package computes autocorrelations of a data set and displays the result as a column plot with dashed lines indicating the 95% confidence band. AutoCorrelationPlot is an alias for the Correlogram command.

 >

Animations in the Plot Builder

You can now build animations interactively through the Plot Builder.

 1 From the Context Panel for an expression, select Plot Builder.
 2 Select the animation toggle button to create an animation.

 3 Specify options as desired in the panel.
 4 Click build animation.

 5 To play the animation, use the animation toolbar.

Note: If you are animating a plot with more than one parameterized variable, you can change the sequence order of these variables using the options in the context panel:

 Plot Export It is now possible to export plots to the Scalable Vector Graphics (SVG) file format.