./
multiplot_pp.pro
Routines
top source multiplot_pp
multiplot_pp, pmulti, help=help, initialize=initialize, reset=reset, default=default, rowmajor=rowmajor, verbose=verbose
Create multiple plots with shared axes. EXPLANATION: This procedure makes a matrix of plots with *SHARED AXES*, either using parameters passed to multiplot or !p.multi in a non-standard way. It is good for data with one or two shared axes and retains all the versatility of the plot commands (e.g. all keywords and log scaling). The plots are connected with the shared axes, which saves space by omitting redundant ticklabels and titles. Multiplot does this by setting !p.position, !x.tickname and !y.tickname automatically. A call (multiplot,/reset) restores original values. Note: This method may be superseded by future improvements in !p.multi by RSI. For now, it's a good way to gang plots together.
Multiplot sets a number of system variables: !p.position, !p.multi, !x.tickname, !y.tickname, !P.noerase---but all can be reset with the call: multiplot,/reset
1. If you use !p.multi as the method of telling how many plots are present, you have to set !p.multi at the beginning each time you use multiplot or call multiplot with the /reset keyword. 2. There's no way to make an xtitle or ytitle span more than one plot, except by adding spaces to shift it or to add it manually with xyouts. 3. There is no way to make plots of different sizes; each plot covers the same area on the screen or paper.
This routine makes a matrix of plots with common axes, as opposed to the method of !p.multi where axes are separated to allow labels. Here the plots are joined and labels are suppressed, except at the left edge and the bottom. You tell multiplot how many plots to make using either !p.multi (which is then reset) or the parameter pmulti. However, multiplot keeps track of the position by itself because !p.multi interacts poorly with !p.position.
Parameters
- pmulti
Keywords
- help
- initialize
- reset
- default
- rowmajor
- verbose
Author information
- History:
write, 21-23 Mar 94, Fred Knight (knight@ll.mit.edu) alter plot command that sets !x.window, etc. per suggestion of Mark Hadfield (hadfield@storm.greta.cri.nz), 7 Apr 94, FKK add a /default keyword restore IDL's default values of system vars, 7 Apr 94, FKK modify two more sys vars !x(y).tickformat to suppress user-formatted ticknames, per suggestion of Mark Hadfield (qv), 8 Apr 94, FKK Converted to IDL V5.0 W. Landsman September 1997 Changed the margin calculation to incorporate !x.omargin and !y.omargin. P. Penteado (pp.penteado@gmail.com) Apr 2010 Changed the lines that disable ticks to set x|y.tickname to all ' ', instead of replicating ' ' a set 30 times. P. Penteado (pp.penteado@gmail.com) Apr 2011
Statistics
Lines: | 140 lines |
Cyclomatic complexity: | 31 |
Modified cyclomatic complexity: | 30 |
File attributes
Modification date: | Wed Jun 29 22:15:28 2016 |
Lines: | 140 |
Docformat: | idl preformatted |