Array of Plots - Maple Help

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

Array of Plots

 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

 > $\mathrm{with}\left(\mathrm{plots}\right):$

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

 > $A≔\mathrm{Array}\left(1..2\right):$
 > $A\left[1\right]≔\mathrm{plot}\left(\mathrm{sin}\left(x\right),x=-\mathrm{\pi }..\mathrm{\pi },\mathrm{axes}=\mathrm{framed},\mathrm{labels}=\left[x,\mathrm{sin}\left(x\right)\right]\right):$
 > $A\left[2\right]≔\mathrm{plot}\left(\mathrm{cos}\left(x\right),x=-\mathrm{\pi }..\mathrm{\pi },\mathrm{axes}=\mathrm{boxed},\mathrm{style}=\mathrm{point}\right):$
 > $\mathrm{display}\left(A\right)$

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

 > $\mathrm{display}\left(A,\mathrm{axes}=\mathrm{normal},\mathrm{scaling}=\mathrm{constrained}\right)$

Display two 3-D plots in a column.

 > $B≔\mathrm{Array}\left(1..2,1..1\right):$
 > $B\left[1,1\right]≔\mathrm{plot3d}\left({1.5}^{x}\mathrm{sin}\left(y\right),x=-3..3,y=-3..3\right):$
 > $B\left[2,1\right]≔\mathrm{plot3d}\left({1.3}^{x}\mathrm{sin}\left(y\right),x=-1..2\mathrm{\pi },y=0..\mathrm{\pi },\mathrm{coords}=\mathrm{spherical},\mathrm{style}=\mathrm{patch}\right):$
 > $\mathrm{display}\left(B\right)$

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

 > $\mathrm{display}\left(\mathrm{Array}\left(1..2,1..2,\left[\left[A\left[1\right],B\left[1,1\right]\right],\left[A\left[2\right],B\left[2,1\right]\right]\right]\right)\right)$

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

 > \mathrm{display}\left(\mathrm{Array}\left(1..2,1..2,\left[\left[A\left[1\right],B\left[1,1\right]\right],\left[A\left[2\right],B\left[2,1\right]\right]\right]\right),\mathrm{aligncolumns}=\left[1\right]\right)

Display the frames of an animation in a table.

 > $p≔\mathrm{animate}\left(\mathrm{plot},\left[t\mathrm{sin}\left(x\right),x=-\mathrm{\pi }..\mathrm{\pi },\mathrm{color}="Indigo",\mathrm{view}=\left[-\mathrm{\pi }..\mathrm{\pi },-4..4\right],\mathrm{scaling}=\mathrm{constrained}\right],t=-4..4,\mathrm{frames}=9\right):$
 > $\mathrm{display}\left(p\right)$

 >