Re: Text in plots [message #16936] |
Sat, 28 August 1999 00:00 |
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  |
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  |
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
|
|
|