Home »
Public Forums »
archive »
axis labels in SURFACE all wrong
| Re: axis labels [message #21575 is a reply to message #18610] |
Tue, 05 September 2000 09:46  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Mirko Vukovic (mvukovic@taz.telusa.com) writes:
> I have a plot of x vs. y. I would like before hand to know
> what tick-values of x IDL will put. One way is to create a dummy
> plot and obtain the tick values.
>
> Is there some more direct way? I thought IDL had a routine for that
> but could not find it.
You could probably figure out a way to create an IDLgrAxis
object using the same range, divisions, etc. as your direct
graphics axis. Then inquire of the object what its tick values
are. Then destroy the object and create your direct graphics
plot. I think the algorithms used for direct and object graphics
are very similar, if not identical. You could even use the
object tick values as input to your direct graphics plot if
you wanted to.
Cheers,
David
--
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
|
|
|
|
Current Time: Wed Dec 03 08:14:16 PST 2025
Total time taken to generate the page: 0.88505 seconds