comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: contiguous stacked plots
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: contiguous stacked plots [message #3255 is a reply to message #3254] Mon, 09 January 1995 01:57 Go to previous message
sjt is currently offline  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 | |
+----------------------------------------------------------- --+---------+
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: PRINT_FILE keyword in MS-WINDOWS ???
Next Topic: Re: PRINT_FILE keyword in MS-WINDOWS ???

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:52:38 PDT 2025

Total time taken to generate the page: 0.00459 seconds