Re: IDLgrAxis expanding [message #15055 is a reply to message #15048] |
Wed, 14 April 1999 00:00   |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
I wrote after one too many beers:
> So here is how it is done. (It's a bit convoluted here,
> but it's a solution programmers will love.) I'm showing
> here just the calculations for the dependent data axis,
> but the other axes will be done in the same way:
Alright, I admit it. I was completely wrong. As Mark Hadfield
points out, you can use the CRANGE keyword to get the real,
autoscaled, range of the axis:
thisAxis->GetProperty, CRANGE=realRange
But this exercise wasn't completely pointless. I did come up
with a true "programmers" solution, and I did learn
a couple of things.
1. I learned something I didn't know about object axes and
Lord knows I've plenty of room to learn more.
2. I learned that it doesn't matter if you have looked up
the GetProperty method on an object 100 times and been
told to go to the INIT method 100 times. If you look
it up for the 101st time, you may find a keyword you
*can't* find in the INIT section of the manual.
And I re-learned that most of the information I want *IS*
in the IDL documentation, even if I don't know where to
find it. :-)
But I am still confused about one thing: why "C"Range?
What does that mean? I can understand "O"(output)Range,
or "R"(real)Range, or "A"(autoscaled)Range. But I just
don't get "C"Range. And I don't understand why I would
be expected to know that to find what I want in the index
of the on-line help. What I would prefer would be something
like this:
Axis
range
setting
obtaining the value of
I think even I could have found something like that. :-(
Cheers,
David
P.S. You still have to remember to apply the new axis
data range to the DATA, or your axis won't reflect your
true data values.
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|