Visualization - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : What's New and Release Notes : updates/Maple2020/Visualization

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;

grid,1...1.,1...1.,0.806467993785246251..2.,_rtable18446746203448739350

(3.2)

plottools:-getdatanew;

mesh,1...1.,1...1.,0.806467993785246251..2.,_rtable18446746203448727302

(3.3)

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

POLYGONS391.0374.0240.0431.0252.0340.0,161.0107.0435.0108.0208.0148.0,208.0148.0295.0160.0421.0212.0,421.0212.0441.0303.0391.0374.0,154.0259.0161.0107.0208.0148.0,391.0374.0252.0340.0374.0320.0,134.0390.068.0186.0154.0259.0,134.0390.0154.0259.0208.0148.0,289.0214.0134.0390.0208.0148.0,421.0212.0391.0374.0374.0320.0,289.0214.0208.0148.0421.0212.0,421.0212.0374.0320.0289.0214.0,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

ColorTools:-Palettemodule...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,Green Blue,Yellow,Pale Purple,Green,Blue,Red,Pale Orange,Light Blue,Orange,Pale Green,Purple,Light Green Blue,,palettename=CVD,palettetype=fill

(5.1)

CVDSimulation~P,deuteranomaly

_rtable18446746203458510846

(5.2)

CVDSimulation~P,protanomaly

_rtable18446746203555937446

(5.3)

CVDSimulation~P,tritanomaly

_rtable18446746203561641254

(5.4)