Re: contiguous stacked plots [message #3255 is a reply to message #3254] |
Mon, 09 January 1995 01:57  |
sjt
Messages: 72 Registered: November 1993
|
Member |
|
|
Vincent E. Kargatis (vek@spacsun.rice.edu) wrote:
: I want to make a plot of contiguous stacked plots, like so:
: |------------------------------|
: | |
: Y1 | |
: | |
: |--|--|--|--|--|--|--|--|--|---|
: | |
: Y2 | |
: | |
: |--|--|--|--|--|--|--|--|--|---|
: | |
: Y3 | |
: | |
: |--|--|--|--|--|--|--|--|--|---|
: | |
: Y4 | |
: | |
: |--|--|--|--|--|--|--|--|--|---|
: 0 1 2 3 4 (etc.)
: X label
: Any hints? I know it probably is a rather convoluted series of AXIS
: statements, but if I can save some time...
: Thanks,
: --
: Vincent Kargatis -- Space Physics & |
: Astronomy, Rice U., Houston, TX | A penny saved is ridiculous.
: [vek@spacsun.rice.edu] |
: [http://spacsun.rice.edu/~vek/vek.html] |
Your best bet for contiguous plots is to use either the position keyword
or the !P.POSITION system variable. (For stacked plots with gaps the
!P.REGION is more suitable). You'll also need to remember for all except
the bottom plot to set the tick names to spaces.
e.g. for 4 plots:
plot, x, y1, position=[.1,.1,.9,.3] ; bottom plot has labels.
plot, x, y2, position=[.1,.3,.9,.5], xtickn=replicate(' ',30), /noerase
plot, x, y3, position=[.1,.5,.9,.7], xtickn=replicate(' ',30), /noerase
plot, x, y4, position=[.1,.7,.9,.9], xtickn=replicate(' ',30), /noerase
--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| Ph: 021-414-6462. Fax: 021-414-3722 | |
+----------------------------------------------------------- --+---------+
|
|
|