Figuring out axis range? [message #28481] |
Wed, 12 December 2001 06:19 |
Bruce Bowler
Messages: 128 Registered: September 1998
|
Senior Member |
|
|
I have some data that I'm trying to plot where the xaxis data range is (from min and max) [0,3.19377] and the yaxis range is [-85,85]. The y axis values are fixed, the x
axis values change depending on the data set. Sometimes, the plot that results from plot,x,y,yrange=[-90,90],/ystyle has an x axis that starts at 0, sometimes it starts at -
1 (in the particular case shown here, the range plotted is [-1,5]). I'd like to force the xaxis to start at 0 (the minimum is *never* negative) and have a "nice" upper bound
(so /xstyle doesn't work). Is there an option I'm missing? Is there a routine that will return a "nice" number (like 4, not 3.19377, or 250 if 248.9 is input), is the algorithm
that IDL uses to determine plot ranges documented anywhere?
Thanks!
Bruce
|
|
|