[SciPy-user] Greek symbols for labels in xplt.xlabel

Travis Oliphant oliphant at ee.byu.edu
Thu Aug 21 02:54:04 EDT 2003


Nils Wagner wrote:
> Dear experts,
> 
> Is it possible to use greek symbols for labels in xplt ?
> 
> For example, In gnuplot one can use something like 
> 
> set ylabel 'Real part {/Symbol n}_r'
> set term postscript eps enhanced 20
> 
> Any suggestion ?
> 

Yes,

All text commands in xplt allow some simple formatting.

Greek characters:

prepend with a ! so xplt.xlabel('!a!b') should produce alpha beta (you 
have to know   the letter equivalent of the Greek symbol you want)
xplt.xlabel('!a!b!c!d!e!f!g!h!i!j!k!l!m!n!o!p!q!r!s!t!u!v!w!x!y!z')
should give you an idea of these.

Subscripts:  embed in '_'

xplt.xlabel('H_2_O')

Superscripts:  embed in '^'

xplt.xlabel('x^2^+y^2')


Look at

xplt.xlabel('!l^2^ !n_2_^2^+3')

-Travis O.


> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user




More information about the SciPy-User mailing list