Re: Axis Title Location [message #77485] |
Sun, 04 September 2011 06:19 |
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.")
|
|
|