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

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : 2-D : Array of Plots

Array of Plots

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

plots:-display(p, opts)

Parameters

p

-

a one- or two-dimensional Array of plots or an animation

opts

-

plotting options

Options

• 

aligncolumns: Align the x-axes of 2-D plots in one or more columns so that the left ends of the axes are the same number of pixels from the left sides of the plots. This option is most useful for aligning plots with identical x-axis ranges but y-axis labels that use varying amounts of space. The columns are given as a list of integers k from 1 to n, where n is the column dimension of the Array. The integer k may be replaced by k=t, where t is a list of rows. For example, the option aligncolumns=[2,3=[1,4]] means: align all plots in column 2, and align plots in rows 1 and 4 of column 3. Instead of a list, the value true or false may be given to indicate that all or none of the columns should have their plots aligned. The default value is false. This option is ignored for 3-D plots and for 2-D plots with legend positions set at the left or right.

Description

• 

The plots:-display command can be used to generate a tabular display of plots.

• 

The first argument, p, can be a one- or two-dimensional Array of plot structures created by any of Maple's plotting commands. The individual Array entries may be 2-D or 3-D plots, including animations.

• 

The first argument can also be an animation plot structure, created through the plots:-animate command. In this case, the frames of the animation are displayed in tabular form.

• 

The aligncolumns option, as described below, can be used to align the x-axes of 2-D plots in one or more columns of the Array.

• 

A limited number of other options may be passed to this command. Generally, global plot options (those that affect the overall plot rather than the individual plot elements), as described on the plot/options and plot3d/options help pages, may be given and are applied to each plot in the Array individually.

• 

The features described here are available with the Standard Worksheet Interface. See the plot/interface help page for details about differences in this feature with other user interfaces.

• 

The DocumentTools:-Tabulate command provides an alternative way to display an Array of plots in a tabular form, and this includes the ability to specify Table border visibility, alignment, and background color.

Examples

withplots:

Display two 2-D plots side-by-side.

AArray1..2:

A1plotsinx,x=π..π,axes=framed,labels=x,sinx:

A2plotcosx,x=π..π,axes=boxed,style=point:

displayA



Display the same two plots, but with normal axes and constrained scaling.

displayA,axes=normal,scaling=constrained



Display two 3-D plots in a column.

BArray1..2,1..1:

B1,1plot3d1.5xsiny,x=3..3,y=3..3:

B2,1plot3d1.3xsiny,x=1..2π,y=0..π,coords=spherical,style=patch:

displayB



Display the 2-D plots and the 3-D plots together.

displayArray1..2,1..2,A1,B1,1,A2,B2,1



Display the same plots, but with the 2-D plots having their horizontal axes aligned.

displayArray1..2,1..2,A1,B1,1,A2,B2,1,aligncolumns=1



Display the frames of an animation in a table.

panimateplot,tsinx,x=π..π,color=Indigo,view=π..π,4..4,scaling=constrained,t=4..4,frames=9:

displayp



See Also

DocumentTools:-Tabulate

plot/options

plot3d/options

plots

plots:-animate

plots:-display