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

Home » Public Forums » archive » Re: Reversing an axis with IDLgrAxis
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: Reversing an axis with IDLgrAxis [message #14207 is a reply to message #14194] Mon, 01 February 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Mark Hadfield (m.hadfield@niwa.cri.nz) writes in response to
Peter Connell:

>> OK, I give. I would like to plot an axis (object graphics) with values
>> descending rather than ascending in the normal positive direction. I can do
>> this using (XY)COORD_CONV, but when I do, the tick text and axis title are
>> reversed as well (mirror image) and I can't figure out how to reverse them
>> back to read normally.
>
> Plot against the inverse of the variable and get the labels you want via
> the TICKFORMAT property. The TICKFORMAT_NEGATIVE function below
> is designed to do this.
>
> function TICKFORMAT_NEGATIVE, Direction, Index, Value
>
> return, (format_axis_values(-Value))[0]
>
> end

Very nice. But how in the world did you discover the
Format_Axis_Values function!? You're not one of those
people who read through the documentation for fun are
you? :-)

And why would you think a priori that this would work?

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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: !P.MULTI + POSITION keyword problem
Next Topic: Color in emacs IDL mode

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

Current Time: Fri Oct 10 13:31:58 PDT 2025

Total time taken to generate the page: 0.88134 seconds