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

Home » Public Forums » archive » Re: How does IDL calculate the graph axis values?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How does IDL calculate the graph axis values? [message #18708 is a reply to message #18702] Wed, 02 February 2000 00:00 Go to previous messageGo to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
"Liam E. Gumley" wrote:
<blockquote TYPE=CITE>&nbsp;
<br>This method does not require a graphics window to be open, does not
care
<br>what graphics device is active, does not disturb the contents of the
Z
<br>buffer, and does not disturb the current plot settings.
<br>&nbsp;
<br><a href="http://cimss.ssec.wisc.edu/~gumley"></a>&nbsp;</blockquote>
Hello,
<p>I wonder if the IDLgrAxis object might be handy here.&nbsp;&nbsp; I
haven't thought about it before, but I would guess that
<br>the axis range in Direct and Object graphics are determined in the
same way by IDL (or at least the results will be similar.)
<br>Assuming that your want to use direct graphics, you could temporarily
create an axis specifying your data range.&nbsp; Then use the GetProperty
method to retrieve
<br>CRange.&nbsp; Finally, destroy the object.
<p>Direction = 0&nbsp; ; or 1 for the yaxis
<br>oAxis = Obj_New('IDLgrAxis', Direction, Range = [YourDataMin,YourDataMax])
<br>oAxis -> GetProperty, CRange = CRange
<br>Obj_Destroy, oAxis
<p>Here's what the help file on CRange states:
<p>CRANGE
<br>Set this keyword to a named variable that will contain the actual full
range of the axis as a vector of the form [minval, maxval]. This range
may not exactly match the requested range provided via the RANGE keyword
in the Init and SetProperty methods. Adjustments may have been made to
round to the nearest even tick interval or to accommodate the EXTEND keyword.
<p>Ben
<pre>--&nbsp;
Ben Tupper

Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org

pemaquidriver@tidewater.net</pre>
&nbsp;</html>
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: data interpolation
Next Topic: mapping data & grid (MAP_SET MAP_GRID)

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

Current Time: Sat Oct 11 15:05:38 PDT 2025

Total time taken to generate the page: 1.75111 seconds