[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text in plots




"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
--------------------------------------------------------------------------