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
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.
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.
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 ≔ 5−x10+1−x2−y2+y+122+x−132−142 +y−132+x+142−11610: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
interfacertablesize=3:
plottools:-getdataold;
plottools:-getdatanew;
interfacertablesize=10:
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.
pts≔391,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:
P≔plottools:-polygon⁡pts:
Q≔plottools:-triangulateP,style=line
Q≔POLYGONS⁡391.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.,STYLE⁡LINE
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.
with⁡ColorTools:
P≔GetPalette⁡CVD
P≔Palette CVD:⁢Green Blue⁢Yellow⁢Pale Purple⁢Green⁢Blue⁢Red⁢Pale Orange⁢Light Blue⁢Orange⁢Pale Green⁢Purple⁢Light Green Blue
CVDSimulation~P,deuteranomaly
CVDSimulation~P,protanomaly
CVDSimulation~P,tritanomaly
Download Help Document