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

Home » Public Forums » archive » Figuring out axis range?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Figuring out axis range? [message #28481] Wed, 12 December 2001 06:19
Bruce Bowler is currently offline  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
[Message index]
 
Read Message
Previous Topic: support (lack thereof) for Mac version of IDL5.5.1
Next Topic: [call_external] how to use it ?

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

Current Time: Sat Oct 11 13:44:22 PDT 2025

Total time taken to generate the page: 1.20228 seconds