Data Plots - Maple Help

 Data Plots

There is a new dataplot command for plotting numerical data. It is similar in scope to the plot and plot3d commands but is specifically designed for displaying data. It encompasses both 2-D and 3-D plots. The dataplot command is also available in the right-click context-sensitive "Plots" submenu.

Many Different Plots with One Command

With the dataplot command, you can generate a large variety of plots by simply specifying the type of plot you want. As a shortcut, you can also select Plots > Data Plot from the context menu by right clicking on the following matrix in order to choose the type of data plot that you want to show.

 >
 ${M}{:=}\left[\begin{array}{c}{\mathrm{21 x 21}}{\mathrm{Matrix}}\\ {\mathrm{Data Type:}}{{\mathrm{float}}}_{{8}}\\ {\mathrm{Storage:}}{\mathrm{rectangular}}\\ {\mathrm{Order:}}{\mathrm{Fortran_order}}\end{array}\right]$ (1.1)

 >
 >
 >

New Intuitive Calling Sequences and Support for Different Data Types

The dataplot command allows several calling sequences, making it easier to generate plots without having to transform your data into the right format. In addition to the calling sequence shown in the examples earlier, two more are available. Notice also that the data can be provided as a list, Vector, Matrix, or Array.

 >

This calling sequence for 2-D point plots makes it easy to plot different sets of y-values against a single set of x-values.

 >

This calling sequence for 3-D surfaces allows you to adjust the x- and y- values associated with a grid of z-values.

 >

More Options for 2-D Point Plots

A number of options available with the dataplot command allow you to change the look of 2-D point plots.

Animate a point plot. In order to view the animation, rightclick and choose - Animation > Play.

 > $\mathrm{dataplot}\left(X,\left[\mathrm{Y1},\mathrm{Y2},\mathrm{Y3}\right],\mathrm{animation}\right)$

The dataplot automatically assigns colors to different datasets, but if you specify a single color, symbols are used to differentiate the datasets.

 > $\mathrm{dataplot}\left(X,\left[\mathrm{Y1},\mathrm{Y2},\mathrm{Y3}\right],\mathrm{color}="Niagara Purple",\mathrm{symbolsize}=25\right)$

The colorpalette option changes the color palette from which the default colors are chosen.

 >

Statistical Plots

The dataplot command allows you to generate a variety of statistical plots and to visualize Quandl datasets.

Statistical plots such as bar charts and area charts are available.

 > $\mathrm{dataplot}\left(\left[\mathrm{Y1},\mathrm{Y2},\mathrm{Y3}\right],\mathrm{bar}\right)$
 >

Quandl datasets can also be plotted. The following plot shows the population in Canada:

 > $\mathrm{ref}:=\mathrm{DataSets}:-\mathrm{Quandl}:-\mathrm{Reference}\left("FRED/CANPOPL"\right):\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\mathrm{dataplot}\left(\mathrm{ref},\mathrm{color}="Red"\right);$