SUBCELLARRAY Name
SUBCELLARRAY Author
Craig B. Markwardt, NASA/GSFC Code 662, Greenbelt, MD 20770
craigm@lheamail.gsfc.nasa.gov Purpose
Returns a set of subcells, suitable for creating a matrix of plots.
Calling Sequence
subcellarray, xdivs, ydivs, newpanels, newsubpanels
Description
SUBCELLARRAY generates a group of subcells. The subcells are
useful for plotting a matrix of windows.
This procedure takes a list of subdivisions in X and Y,
designating the subdivision of the plot into num(X) X panels and
num(Y) Y panels, and creates a new batch of panels and subpanels,
which can be used in the individual plot commands of the array.
Inputs
XDIVS - list of subdivisions in the X-direction. Example: [1,1,2]
will create three panels in the X-direction such that
their sizes are in the ratio of 1:1:2 (1 being on the
left, 2 being on the right). These are the subdivisions
of the SUBPANEL, the inner plot box boundary, not
divisions of the PANEL, which is the boundary that
includes axis labels.
YDIVS - same, for Y direction
Optional Inputs
NONE
Input Keyword Parameters
PANEL - Original panel (outer margin) of plot. Default is to fill
screen.
SUBPANEL - Original subpanel (inner margin) of plot. Default is
to use defsubcell(). Outputs
NEWPANELS - output array of panels. The output is 4 x M x N where
M is the number of X divisions and N is the number of
Y divisions.
NEWSUBPANELS - output array of subpanels, with correct adjustment
for margins, same format as NEWPANELS.
Procedure
Example
See PLOTCUBE for an example usage.
See Also
DEFSUBCELL, SUBCELLARRAY, PLOTCUBE
EXTERNAL SUBROUTINES:
DEFSUBCELL, SUBCELL
Modification History
Written, CM, 1997
Added copyright notice, 25 Mar 2001, CM
Add usage message, 19 May 2009, CM