general/tplot/
tplot_positions.pro
Routines
top source tplot_positions
result = tplot_positions(panels, xm=xm, xom=xom, ym=ym, yom=yom, sizes=sizes)
NAME: tplot_positions PURPOSE: Return a set of plot positions for tplot. Given the number of plots, the margins, and the relative sizes of the plot panels, determine the plot coordinates. The positions are the device coordinates of the plot, not of the plot region. (See IDL User's Guide Chapter 14.10) If the margins are not specifically set, first the limit structures are checked, then ![x,y].margin are checked, then some defaults are used. CALLING SEQUENCE: positions = tplot_positions(panels) INPUTS: panels: the number of plots, an integer KEYWORD PARAMETERS: xm,xom,ym,yom: the x and y inner and outer margins these are two element arrays. ![x,y].margin and ![x,y].omargin are used if left off sizes: fltarr(panels) containing the relative plot sizes OUTPUTS: positions = fltarr(4,n_elements(panels)) positions(*,i) is the ith plot position (x0,y0,x1,y1) EXAMPLE: LAST MODIFICATION: @(#)tplot_positions.pro 1.2 97/05/30
Parameters
- panels
Keywords
- xm
- xom
- ym
- yom
- sizes
File attributes
Modification date: | Thu Feb 13 16:43:17 2014 |
Lines: | 74 |