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

Home » Public Forums » archive » Contour Plot Issues
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
Contour Plot Issues [message #84684] Thu, 12 July 2012 12:43
Oana Coman is currently offline  Oana Coman
Messages: 27
Registered: December 2011
Junior Member
Hi All! I have a seemingly-simple issue that I can't for the life of me get to work, and another issue mainly of existence.

The first: I am trying to get a contour plot to plot with the spacing between minor/major ticks to be the same in the x and y direction. No matter what I try, I can't get this to work. I need to size of the plot itself to be able to change (so if i have 10 major ticks in x and 20 in y, I don't want the plot to be that size when, say, the next plot has 5 ticks in x and 15 in y because then the spacing between the x and y ticks won't be the same). Hope that made sense!

Here's my code:

cgContour,z,x,y, /Fill,$ ;Position=[0.125,0.025,0.9,0.8] I had a colorbar, but I can't hardcode a size to this plot since it will mess with my tick interval lengths depending on number of ticks I have, so commented this out
levels=levels, C_colors=Indgen(numLevels(1))+1,$
c_labels=levels, /Outline,$
xminor=5, yminor=5,$ ;tried hardcoding the number of minor ticks
xtickinterval=10, ytickinterval=10,$ ;tried hardcoding the interval size
xticks=20,yticks=20,$ ;even tried hardcoding the number of ticks
xstyle=1, ystyle=1,$
xrange=[-20,20],yrange=[-20,20], /Window ;and tried to give it the same range as a last desperate plea to see if it would give me the same distance between ticks....but nope.
Help!

The second issue: Is there a contour plot option anywhere that will allow me to dynamically change the x and y range so i can zoom in/out?

Thanks guys!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Contour Plot Issues
Next Topic: compilation strangeness

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

Current Time: Wed Oct 08 13:54:19 PDT 2025

Total time taken to generate the page: 0.00499 seconds