Array of Plots
a one- or two-dimensional Array of plots or an animation
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.
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.
Display two 2-D plots side-by-side.
A ≔ Array⁡1..2:
A1 ≔ plot⁡sin⁡x,x=−Pi..Pi,axes=framed,labels=x,sin⁡x:
A2 ≔ plot⁡cos⁡x,x=−Pi..Pi,axes=boxed,style=point:
Display the same two plots, but with normal axes and constrained scaling.
Display two 3-D plots in a column.
B ≔ Array⁡1..2,1..1:
B1,1 ≔ plot3d⁡1.5x⁢sin⁡y,x=−3..3,y=−3..3:
B2,1 ≔ plot3d⁡1.3x⁢sin⁡y,x=−1..2⁢Pi,y=0..Pi,coords=spherical,style=patch:
Display the 2-D plots and the 3-D plots together.
Display the same plots, but with the 2-D plots having their horizontal axes aligned.
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:
Download Help Document