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

Home » Public Forums » archive » Extension to "Overplotting Data on !P.MULTI Plots"
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Extension to "Overplotting Data on !P.MULTI Plots" [message #35727] Fri, 11 July 2003 04:35 Go to next message
raphael.schefold is currently offline  raphael.schefold
Messages: 2
Registered: July 2003
Junior Member
After overplotting data on !P.MULTI Plots it is sometimes necessary to
plot the axis, titles etc again to have the axis (which is mostly
black) drawn over your data lines (which are often colored).
But plot, data, /noerase, /nodata jumps to the next plot window. For
that,
!p.multi(0)=!p.multi(0)+1 helps, as you can see in the following code.

I am posting, because I met several people who were confused about
that.

-Raphael

Example code for "nodata noerase plot after overplotting Data on
!P.MULTI Plots":

!P.MULTI= [0, 2, 2]

p_sav=replicate(!p, 4)
x_sav=replicate(!x, 4)
y_sav=replicate(!y, 4)

for i=0, 3 do begin
plot, [0,1], [0, 1], title=string(i), /nodata
p_sav(i)=!p & x_sav(i)=!x & y_sav(i)=!y
end

for i=0, 3 do begin
!p=p_sav(i) & !x=x_sav(i) & !y=y_sav(i)
oplot, [.5], [.5], psym=i
end

for i=0, 3 do begin
!p=p_sav(i) & !x=x_sav(i) & !y=y_sav(i)
!p.multi(0)=!p.multi(0)+1
plot, [0,1], [0, 1], title=string(i), /nodata, /noerase
end
Re: Extension to "Overplotting Data on !P.MULTI Plots" [message #35812 is a reply to message #35727] Mon, 14 July 2003 12:44 Go to previous message
wmconnolley is currently offline  wmconnolley
Messages: 106
Registered: November 2000
Senior Member
raphael schefold <raphael.schefold@gmx.ch> wrote:
> Is there any particular reason to use the axis command? I can restore
> easily all graphical system variables and plot all necessary axes with
> plot, ..., /nodata, /noerase.

I think I misunderstood your original message. If that works, fine.

-W.

--
William M Connolley | wmc@bas.ac.uk | http://www.antarctica.ac.uk/met/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
I'm a .signature virus! copy me into your .signature file & help me spread!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Newbie Widget table question
Next Topic: Re: Envi band math help!

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

Current Time: Wed Oct 08 18:41:34 PDT 2025

Total time taken to generate the page: 0.00519 seconds