Overplot behalfs strange [message #73305] |
Wed, 03 November 2010 09:22 |
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
|
|
|