Extended characters in MATPLOTLIB (newbie)

Andrew Holme andrew at nospam.com
Tue May 15 16:10:25 EDT 2007


"Andrew Holme" <andrew at nospam.com> wrote in message 
news:f2d2mm$gjs$1$8300dec7 at news.demon.co.uk...
> I'm using MATPLOTLIB on Windows.
>
> How can I get extended characters such as the micro symbol (greek letter 
> mu) to appear in my axis labels?
>
> I've tried:
>
> xlabel('µs', font)
>
> and
>
> xlabel('\xB5s', font)
>
> but it just appears as a box.
>
> TIA
>

Found it:

xlabel(r'$\mu s$', fontsize=20)







More information about the Python-list mailing list