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

Home » Public Forums » archive » Re: Superscripts in IDL [x-y]title
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: Superscripts in IDL [x-y]title [message #13476 is a reply to message #13462] Tue, 10 November 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Henry J. P. Smith (hjpsmith@bigfoot.com) writes:

> Just did (tried to do) a search on dejanews to see if I could find
> this there and got not hits. So here goes.
>
> My co-author on a paper would like to see superscripts in the axis
> titles of simple 2-d plots, e.g. instead of something like cm**-3 ot
> have cm^{-3} - using TeX notation.
>
> I am using PS fonts so I think there must be a way to do this. Is
> there any way to get IDL to do it directly? I suppose I could do it in
> POSTSCRIPT but I don't really know PS and don't have time to learn it
> right now. At least I think I don't - perhaps the same thing? <G>

Plot, Findgen(11), XTitle='cm!U-3!N Units'

If I were doing this and wanting to use PostScript fonts,
I would type:

Plot, Findgen(11), XTitle='cm!U-3!N Units', Font=0

If I wanted to use True-Type fonts (which work both on
the display and in PostScript output) I would type:

Plot, Findgen(11), XTitle='cm!U-3!N Units', Font=1

Cheers,

David



----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/

Note: A copy of this article was e-mailed to the original poster.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: passing object references
Next Topic: Re: 24-bit image planes (was Colored MPEGs)

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

Current Time: Tue Oct 21 07:05:07 PDT 2025

Total time taken to generate the page: 3.60032 seconds