Visualization - Maple Help

# Online Help

###### All Products    Maple    MapleSim

Visualization

Visualization improvements include plot annotations; new plots for thermophysical data, signal processing, and statistics; and more tools for working with colors and palettes in the ColorTools package.

 Plot Annotations Plots can now include annotations on points and lines using the annotation plot option. Annotations appear when you mouse over a point or a line with an annotation. The following visualization was generated by this application. Move the mouse over the points; an annotation gives the location and the magnitude of an earthquake The world map for this visualization was generated by Maple 2017's new map tools.   This is a ternary plot of the color of gold-silver-copper alloys under specific lighting conditions, generated by this application. Moving the mouse over the points reveals the composition of the alloy: More details about adding plot annotations and using options to include coordinate values and customize the display are available in the plot annotations help page. Annotations are available for 2-D plots only. Contour plots now have labels on the contours that appear when the pointer is placed over a contour line.     You can control and customize this feature using the contourlabels option as described on the contour plots help page. These labels are available for 2-D contour plots only.

ThermophysicalData

The ThermophysicalData package now generates temperature-entropy charts for any pure fluid.

Note that the plot includes the two-phase dome. You can customize the plot: the temperature and entropy range can be changed and isobars can be modified.

Additionally, thermodynamic cycles can be visualized by placing lines on top of the chart. The following, for example, is a visualization of a Rankine cycle generated by this application.

 Maps Maple 2017 features new tools for generating and customizing world maps. This map, for example, is a choropleth that visualizes European fertility rates, and was generated by this application. Lighter shades of green indicates higher levels of fertility.

SignalProcessing

The new Periodogram function from the SignalProcessing package generates a power spectrum plot.

This, for example, is a periodogram of a speech sample.

$\mathrm{signal}≔\mathrm{AudioTools}:-\mathrm{Read}\left(\mathrm{cat}\left(\mathrm{kernelopts}\left(\mathrm{datadir}\right),"/audio/MapleSimMono11025.wav"\right)\right):$

$\mathrm{SignalProcessing}:-\mathrm{Periodogram}\left(\mathrm{signal},\mathrm{size}=\left[800,400\right]\right)$

This new tool, when allied with the Spectrogram function, gives greater insight into the frequency contents of a signal.

Statistics

There are many updates to existing Statistics visualizations as well as three new plots:

 Venn Diagram ViolinPlot WeibullPlot

For more detail, see the Statistics and Data Analysis page.

Graph Theory

The updated GraphTheory package offers several new special graphs, and features a new greyscale color scheme for the visualizations.

Book Graph

Chvatal Graph

Folkman Graph

Franklin Graph

Frucht Graph

Hoffman Graph

ColorTools

The ColorTools package has seen a few changes in this release.

$\mathrm{with}\left(\mathrm{ColorTools}\right):$

There are five new commands relating to ColorTools[Color] objects: Chroma, Hue, Luma, ToPlotColor, and ToRGB. In addition, the Darken and Lighten commands both accept a new option called best. These commands and options can be used as follows.

 ${\mathrm{greenish}}{≔}{⟨}\colorbox[rgb]{0.380392156862745,0.4,0.0274509803921569}{{RGB : 0.38 0.4 0.027}}{⟩}$ (7.1)

 ${\mathrm{darker}}{≔}\left[{⟨}\colorbox[rgb]{0.341176470588235,0.36078431372549,0}{{RGB : 0.34 0.36 0.000351}}{⟩}{,}{⟨}\colorbox[rgb]{0.301960784313725,0.32156862745098,0}{{RGB : 0.302 0.32 0}}{⟩}{,}{⟨}\colorbox[rgb]{0.262745098039216,0.282352941176471,0}{{RGB : 0.265 0.281 0.000191}}{⟩}{,}{⟨}\colorbox[rgb]{0.227450980392157,0.243137254901961,0}{{RGB : 0.229 0.243 0}}{⟩}\right]$ (7.2)

 ${\mathrm{lighter}}{≔}\left[{⟨}\colorbox[rgb]{0.482352941176471,0.494117647058824,0.145098039215686}{RGB : 0.481 0.496 0.144}{⟩}{,}{⟨}\colorbox[rgb]{0.556862745098039,0.564705882352941,0.215686274509804}{RGB : 0.555 0.566 0.214}{⟩}{,}{⟨}\colorbox[rgb]{0.611764705882353,0.619607843137255,0.266666666666667}{RGB : 0.611 0.62 0.266}{⟩}\right]$ (7.3)

 ${\mathrm{shades}}{≔}\left[{⟨}\colorbox[rgb]{0.341176470588235,0.36078431372549,0}{{RGB : 0.34 0.36 0.000351}}{⟩}{,}{⟨}\colorbox[rgb]{0.301960784313725,0.32156862745098,0}{{RGB : 0.302 0.32 0}}{⟩}{,}{⟨}\colorbox[rgb]{0.262745098039216,0.282352941176471,0}{{RGB : 0.265 0.281 0.000191}}{⟩}{,}{⟨}\colorbox[rgb]{0.227450980392157,0.243137254901961,0}{{RGB : 0.229 0.243 0}}{⟩}{,}{⟨}\colorbox[rgb]{0.380392156862745,0.4,0.0274509803921569}{{RGB : 0.38 0.4 0.027}}{⟩}{,}{⟨}\colorbox[rgb]{0.482352941176471,0.494117647058824,0.145098039215686}{RGB : 0.481 0.496 0.144}{⟩}{,}{⟨}\colorbox[rgb]{0.556862745098039,0.564705882352941,0.215686274509804}{RGB : 0.555 0.566 0.214}{⟩}{,}{⟨}\colorbox[rgb]{0.611764705882353,0.619607843137255,0.266666666666667}{RGB : 0.611 0.62 0.266}{⟩}\right]$ (7.4)

 ${\mathrm{lumas}}{≔}\left[{0.3143831233}{,}{0.27941840}{,}{0.2452529810}{,}{0.21193181}{,}{0.35297}{,}{0.45262667}{,}{0.52411167}{,}{0.57852909}\right]$ (7.5)

 ${\mathrm{chromas}}{≔}\left[{0.359709788}{,}{0.320170}{,}{0.280881991}{,}{0.242659}{,}{0.373}{,}{0.351633}{,}{0.351703}{,}{0.353711}\right]$ (7.6)

 ${\mathrm{coordinates}}{≔}\left[\left[{0.3143831233}{,}{0.359709788}\right]{,}\left[{0.27941840}{,}{0.320170}\right]{,}\left[{0.2452529810}{,}{0.280881991}\right]{,}\left[{0.21193181}{,}{0.242659}\right]{,}\left[{0.35297}{,}{0.373}\right]{,}\left[{0.45262667}{,}{0.351633}\right]{,}\left[{0.52411167}{,}{0.351703}\right]{,}\left[{0.57852909}{,}{0.353711}\right]\right]$ (7.7)

It is clear that the Darken and Lighten commands change the colors nonlinearly in this color space.

The new DisplayPalette command provides a helpful way to view the colors in a palette by displaying the names and associated colors in a table.  This command is used on the Plot Color Names help page as well as on the help pages for the predefined color palettes, which are listed on the ColorTools page in the List of Color Collections section.

There are six other new commands relating to ColorTools[Palette] objects: GetPaletteType, GetColors, KnownColor, Lookup, numcolors, and numelems. They can be used as follows.

Suppose we find a color we particularly like in the sorted list of colors, somewhere in the middle of the palette. We can look it up in the original palette.

 ${\mathrm{clementine}}{≔}{⟨}\colorbox[rgb]{0.913725490196078,0.431372549019608,0}{RGB : Clementine}{⟩}$ (7.8)

 ${\mathrm{colorname}}{≔}{"Clementine"}$ (7.9)

 ${⟨}\colorbox[rgb]{0.913725490196078,0.431372549019608,0}{RGB : Clementine}{⟩}$ (7.10)
 PlotBuilder The updated PlotBuilder helps you interactively build 2-D and 3-D plots without the use of commands.
 See Also