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

Home » Public Forums » archive » Re: Axis Title Location
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Axis Title Location [message #77485] Sun, 04 September 2011 06:19
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
tbov22@hotmail.com writes:

> I'm wondering whether there is an easy way to position axis title (I'm
> setting the titles using the axis command). Every now and then a title
> is either too high or too low and this can generally be fixed by
> adding a carriage return to the string !C. But there are times when a
> carriage return moves the title by too much, especially when the font
> size is large. This can be solved by using the !A and !B commands
> (http://idlastro.gsfc.nasa.gov/idl_html_help/
> Embedded_Formatting_Commands.html), but this does not work properly if
> subscripts or superscripts are in the title. In cases where my axis
> title contains subscripts or superscripts, what is the best way to
> shift the title location by say, 1/2 the font height.

Sigh... The things we do. :-(

Forget about placing the title with the AXIS command.
Turn the title off (set the format to "(A1)") and
put the darn thing where you want it with the
XYOUTS command (or, better yet, the cgText command).

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Axis Title Location
Next Topic: IDLDE quitting on startup

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

Current Time: Wed Oct 08 15:14:15 PDT 2025

Total time taken to generate the page: 0.00675 seconds