Visualization - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Visualization

Maple 2020 includes the following visualization updates.

 

Plot size

Legends for 2-D contour plots

Adaptive edge computation for plot3d

plottools[triangulate]

ColorTools:-CVDSimulation

Plot size

The default plot size for 2-D and 3-D plots is bigger.

sinx2x

 

In addition, the size option is now supported for 3-D plotting commands.  This allows for specifying precise and consistent dimensions for the plotting window that encapsulates inline 3-D plots. This geometry is respected upon export of the plot to an image file.

The size option is also supported by the plots:-display command for combining multiple 3-D plots.

 

The following plot has also been manually zoomed and panned.

 

Legends for 2-D contour plots

The plots:-contourplot command's support for the legend option now allows for both automatic generated and customized legend entries to display the values of the contour lines.

 

withplots:


When supplied as a list the number of legend entries must match the requested number of contour lines.  The contour values can be numerically formatted.


The special name contourvalue can be used within a typeset formula.


The special value "null" can be used to suppress the legend entry for particular contours.

 

Adaptive edge computation for plot3d

 

The new adaptmesh option of the plot3d command provides for automatic adjustment of the independent values of the data points in order to display smoother edges for surfaces which are non-numeric in some part of the specified rectangular domain.

In previous releases, the surface appeared as it now does with the option given as adaptmesh=false. The new default behavior is adaptmesh=true. In the following two graphs, the default behavior in Maple 2020 is shown on the right.

expr  5x10+1x2y2+y+122+x132142               +y132+x+14211610:rng   x = 1.1 .. 1.1, y = 1.1 .. 1.1:opts  colorscheme=zgradient,red,green, orientation=20,70,0:


With the option set to true the result contains a MESH structure, while with the option set to false the result contains a GRID structure.

The data values can still be extracted using the plottools:-getdata command.

op1,0,old, op1,0,new;

GRID,MESH

(3.1)

interfacertablesize=3:

plottools:-getdataold;

plottools:-getdatanew;

interfacertablesize=10:

plottools[triangulate]

The triangulate command takes a POLYGONS or POINTS structure and returns a POLYGONS structure containing a set of triangles which cover the region defined by its input.

pts391,374,240,431,252,340,374,320,289,214,134,390,68,186,154,259,161,107,435,108,208,148,295,160,421,212,441,303:

Pplottools:-polygonpts:

Qplottools:-triangulateP,style=line

QPOLYGONS391.374.240.431.252.340.,161.107.435.108.208.148.,208.148.295.160.421.212.,421.212.441.303.391.374.,154.259.161.107.208.148.,391.374.252.340.374.320.,134.390.68.186.154.259.,134.390.154.259.208.148.,289.214.134.390.208.148.,421.212.391.374.374.320.,289.214.208.148.421.212.,421.212.374.320.289.214.,STYLELINE

(4.1)

ColorTools:-CVDSimulation

CVDSimulation in the ColorTools package is a new command that returns how a color could be perceived by a viewer with a specific color vision deficiency.

withColorTools:

PGetPaletteCVD

PPalette CVD:Green BlueYellowPale PurpleGreenBlueRedPale OrangeLight BlueOrangePale GreenPurpleLight Green Blue

(5.1)

CVDSimulation~P,deuteranomaly

CVDSimulation~P,protanomaly

CVDSimulation~P,tritanomaly