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

Home » Public Forums » archive » Overplot behalfs strange
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
Overplot behalfs strange [message #73305] Wed, 03 November 2010 09:22
sirvival is currently offline  sirvival
Messages: 18
Registered: August 2010
Junior Member
Hi,
I am trying to plot an array and then do an overplot with a contour of
the same data.


My code is like this

colors
y = indgen((ey-5)-(sy+5)+1)+(sy+5)
window,5,xsize=1280,ysize=1000
loadct,0
display,ordim[sx:ex,sy+5:ey-5],x,y,/log,xtitle='Pixel',ytitl e='Pixel'
colors
contour,ordim[sx:ex,sy+5:ey-5],x,y,nlevels=15,thick=2.5,col= 2,/
overplot


This does not work like I want it too. The contour does not get ploted
as it seems.

But if I do another plot in advance that looks the same but uses the /
noerase keyword with contour I get what I am looking for.
e.g.
window,0
display,ordim
contour,ordim,nlevels=20,/noerase

If I close idl it gets "reseted" and I have to do the /noerase plot
again to get my plot working.

Its not an big issue but I wonder whats happening.

What I want is:
http://img841.imageshack.us/img841/9059/contour.jpg

I am using IDL 7.1.1


Thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: hist_norm
Next Topic: an idl_opserver-like option for IDL 8.0?

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

Current Time: Wed Oct 08 15:17:09 PDT 2025

Total time taken to generate the page: 0.00485 seconds