
Calling Sequence


plots:display(p, opts)


Parameters


p



a one or twodimensional Array of plots or an animation

opts



plotting options





Options


•

aligncolumns: Align the xaxes of 2D 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 xaxis ranges but yaxis 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 3D plots and for 2D 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 twodimensional Array of plot structures created by any of Maple's plotting commands. The individual Array entries may be 2D or 3D 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 xaxes of 2D 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


Display two 2D plots sidebyside.
>

A[1] := plot(sin(x), x=Pi..Pi, axes=framed, labels=[x, sin(x)]):

>

A[2] := plot(cos(x), x=Pi..Pi, axes=boxed, style=point):

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

display(A, axes=normal, scaling=constrained);

Display two 3D plots in a column.
>

B := Array(1..2, 1..1):

>

B[1,1] := plot3d((1.5)^x*sin(y), x=3..3, y=3..3):

>

B[2,1] := plot3d((1.3)^x*sin(y), x=1..2*Pi, y=0..Pi, coords=spherical, style=patch):

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

display(Array(1..2, 1..2, [[A[1], B[1,1]], [A[2], B[2,1]]]));

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

display(Array(1..2, 1..2, [[A[1], B[1,1]], [A[2], B[2,1]]]), aligncolumns=[1]);

Display the frames of an animation in a table.
>

p := animate(plot, [t*sin(x), x=Pi..Pi, color="Indigo", view=[Pi..Pi, 4..4], scaling=constrained], t=4..4, frames=9):



