X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Jul 2009 02:41 PM by  anon
BUG: wset doesn't remember window range
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:1
New Member


--
17 Jul 2009 02:41 PM
    I have encountered this bug in IDL. you can use this code: window,1 x=findgen(100) y=findgen(50) y=[y,reverse(y)] plot,x,y,yr=[0,100],/ys window,2 plot,x,y,yr=[0,150],/ys ;here you change the yrange wset,1 ; here you call back window1, but NOT its yrange !! oplot,x,y,color=100 If you look at the result the oplot is not the same, because it remembers the yr of window 2 and not wset,1.  Problem encountered on a linux machine (Ubuntu 9.04 - the Jaunty Jackalope) Beware when you plot several variables and you need to use wset!!
    You are not authorized to post a reply.