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

Home » Public Forums » archive » Re: Text in plots
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: Text in plots [message #16936] Sat, 28 August 1999 00:00
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Craig Markwardt <craigmnet@cow.physics.wisc.edu> writes:
> "Alberto Verga" <verga@marius.univ-mrs.fr> writes:
>>
>> Is there a simple way to write greek symbols and subscripts in the
>> titles and labels of a plot?
>> Something like:
>>
>> plot, y, xtitle='\omega_t',ytitle='r^2/\alpha'
>
> As David suggests, you can give embedded commands a try. However, you
> are probably looking for a TeX-like interface for graphics symbols and
> formatting. If that's true they you are probably looking for
> TeXtoIDL, found at the following URL:
>
> http://astron.berkeley.edu/davis/idlshare/general/

Sorry, I went too fast. Here is the correct URL.

ftp://coma.berkeley.edu/pub/mcraig/idl/TeXtoIDL/

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: Text in plots [message #16938 is a reply to message #16936] Fri, 27 August 1999 00:00 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"Alberto Verga" <verga@marius.univ-mrs.fr> writes:
>
> Is there a simple way to write greek symbols and subscripts in the
> titles and labels of a plot?
> Something like:
>
> plot, y, xtitle='\omega_t',ytitle='r^2/\alpha'

As David suggests, you can give embedded commands a try. However, you
are probably looking for a TeX-like interface for graphics symbols and
formatting. If that's true they you are probably looking for
TeXtoIDL, found at the following URL:

http://astron.berkeley.edu/davis/idlshare/general/

Your plot command the becomes:

plot, y, xtitle=textoidl('\omega_t'),ytitle=textoidl('r^2/\alpha')

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: Text in plots [message #16939 is a reply to message #16938] Fri, 27 August 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Alberto Verga (verga@marius.univ-mrs.fr) writes:

> Is there a simple way to write greek symbols and subscripts in the
> titles and labels of a plot?
> Something like:
>
> plot, y, xtitle='\omega_t',ytitle='r^2/\alpha'

Yes. Have a look at the on-line help under Vector-Drawn Fonts.
Follow the links to the Embedded Formatting Commands page.
Should be self-explanatory if you cross your eyes and stick
out your tongue the right way. :-)

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: Re: SEXY STUFF 54702
Next Topic: Re: NT IDL Crashes

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

Current Time: Wed Oct 08 17:08:51 PDT 2025

Total time taken to generate the page: 0.00714 seconds