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

Home » Public Forums » archive » Y2 axis title orientation
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: Y2 axis title orientation [message #74750 is a reply to message #74681] Mon, 31 January 2011 07:57 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jonathan writes:

> When the title is on the right of the axis, IDL has it 180 degrees
> rotated from what I want. My routine fixes this.
> So, what I mean by baseline is, for example, where an underline of the
> text would be. I would want it on the left for the Y2 axis, but IDL
> would put it on the right. It is as though you used XYOUTS to create a
> title and, whereas IDL would have "ORIENTATION=90", I want
> "ORIENTATION=270". This is exactly what my code does, in fact.

I played with this a little bit over the weekend.
I don't know what algorithm IDL uses to position
the axis label, but I haven't discovered it yet.
This one is pretty good, but not perfect.

For example, set the axis range from -1.5 to 1.5. It
gets even worse if you change the character size on
the axis and title to something like 1.25.

When I have done this in the past (DCBAR, for example)
I've always have to provide a "fudge" to nudge the
placement here or there depending on circumstances.

I don't think we have discovered the perfect algorithm
yet. This must be something that is written in a computer
algorithm book somewhere. I wish I knew where. :-(

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Y2 axis title orientation
Next Topic: Coyote Graphics Update, Monday Jan 31

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

Current Time: Thu Oct 09 22:52:49 PDT 2025

Total time taken to generate the page: 0.08158 seconds