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

Home » Public Forums » archive » Superscripts in IDL [x-y]title
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
Superscripts in IDL [x-y]title [message #13477] Tue, 10 November 1998 00:00 Go to next message
hjpsmith is currently offline  hjpsmith
Messages: 2
Registered: November 1998
Junior Member
Hello,

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>

Any suggestions? TIA

Regards,

Henry Smith
Re: superscripts [message #18878 is a reply to message #13477] Mon, 14 February 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
pei zeng (pei@prism-cs.com) writes:

> Is it possible to have superscripts in text/label field, or in axis
> text/title field when using object graphics.

Only if you are using Hershey fonts. Use a Font object set up
to use Hershey fonts and be sure you enable embedded formatting codes
by setting the ENABLE_FORMATTING keyword on the text object.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: POLYFILL / Z-Buffer Bug ?
Next Topic: Passing optional parameters through a wrapper routine

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

Current Time: Sun Oct 12 07:16:37 PDT 2025

Total time taken to generate the page: 1.04145 seconds