Re: using !P.MULTI to oplot to different regions [message #15250] |
Fri, 07 May 1999 00:00 |
philaldis
Messages: 32 Registered: March 1999
|
Member |
|
|
On Thu, 6 May 1999 12:06:04 -0500, "Todd Bowers"
<tbowers@nrlssc.navy.mil> wrote:
> If I create 2 windows that'll each hold 2 plots in a column with...
>
> !P.MULTI = [0,1,2]
> window,1,xsize=350,ysize=700
> window,2,xsize=350,ysize=700
>
> Now I want to overplot in each window / region again
> !P.MULTI = [2,1,2]
> wset,1
> oplot, lambdas[*], absorption1[*] ;plot in window 1, top
> oplot, lambdas[*], attenuation1[*] ;plot in window 1, bottom
> wset,2
> oplot, lambdas[*], absorption2[*] ;plot in window 2, top
> oplot, lambdas[*], attenuation2[*] ;plot in window 2, bottom
>
> I *thought* that !P.MULTI = [2,1,2] command would tell IDL
> that I have 2 plots to go, so oplot into the top portion of each
> window, but it oplots onto the bottom plot of each window.
> I als tried that !P.MULTI = [1,1,2], still oplotted onto bottom
> plot. I also tried moving the !P.MULTI = [2,1,2] command
> after the wset,1 and wset,2 commands, but it *always* oplots
> over the bottom plot. What gives?
>
> --
> Todd Bowers
> tbowers@nrlssc.navy.mil
>
Todd check out this page in David Fanning's IDL programming tips and
tricks:
http://www.dfanning.com/tips/oplot_pmulti.html
and while you're at it, have a look at loads of the other tips there,
because it's a great resource for all things IDL.
Cheers,
Phil
|
|
|