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

Home » Public Forums » archive » Reversing Object Graphics 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
Re: Reversing Object Graphics Axis Range [message #27577 is a reply to message #27476] Thu, 25 October 2001 22:35 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Hadfield (m.hadfield@niwa.cri.nz) writes:

> Not really. Are you aware that there is an object graphics reverse-axis
> example included with IDL (EX_REVERSE_PLOT)? It was introduced with 5.4. At
> the time I tried it out and noticed various problems, in particular that the
> titles looked wrong. I raised this with Atle @ RSI Tech Support and he sent
> back a cool little GUI routine, which I have taken the liberty of attaching.
> I don't know if it handles every case though and it seems kind of fiddly.

I've spent most of the evening fiddling around with this
little program of Atle's that you sent me. I think I understand
how it works (although not why anyone would want to *do* it
this way), but I've watched that Y title flip-flop around
for an hour now, trying to figure out why it is doing that.

When you reverse the axis, the title jumps out about
10-15 pixels further to the left. When you reverse them
again, it jumps back closer to the axis. It drives a
guy like me batty. :-(

But I think I've figured it out. When the axis is
reversed, the viewport change suddenly throws you
into "negative" space, although it doesn't look that
way to the viewer, since the viewport change
fakes you out. But I think that axis title moves
to accommodate the negative sign that *should* be
on the axis annotation (but isn't, of course).

That's so weird, but I can understand it. Because
it is the same problem I have making my (humph,
more elegant) solution work in a general way. I want
to place the axis title "close to" the annotation.
But how close is that? I can't tell. It depends upon
what numbers are there. But there is no way to tell
how big the numbers are, is there?

I've been thinking about writing a little "nudger"
object that will allow you to "nudge" an axis
title in or out, depending upon what looks best.

Object graphics sure are fun. :-0

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Newbie question again - Marking region of interest
Next Topic: Re: Beginner Question: Disappearing Info Structure/Motion Events

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

Current Time: Tue Dec 02 04:21:12 PST 2025

Total time taken to generate the page: 0.96254 seconds