matplotlib, math greek letters and latex

DejaVu Serif appears to, and both FreeSans and FreeSerif from freefont
project do.
John

···

On 13/03/07, Antonino Ingargiola <tritemio@...287...> wrote:

On 3/13/07, John Travers <jtravs@...287...> wrote:
> On 13/03/07, Antonino Ingargiola <tritemio@...287...> wrote:
> > 1. This method works ok as far as I choose a unicode font with the
> > greek letters, for example:
> >
> > rcParams['font.serif'] = 'DejaVu Serif'
> >
> > However with unicode strings I'm not able to do exponent and deponent
> > text (i.e cm^-1)
>
> You should be able to do super/subscripts in unicode. For example a
> superscript '-' is unicode 207B. If you haven't already found it you
> should check out:
> Unicode 15.1 Character Code Charts
> for more codes. However, the font you choose must support the unicode
> (most only support a certain subset).

Many thanks. Now I can do superscript and subscript (using GuCharMap I
can search in symbol description so it's easy to find them).

However the only font I know that has the superscript with the minus
sign is "DejaVu Sans". Anyone know a serif font (or also another sans
font) with all those symbols?

[cut]

> However the only font I know that has the superscript with the minus
> sign is "DejaVu Sans". Anyone know a serif font (or also another sans
> font) with all those symbols?

DejaVu Serif appears to, and both FreeSans and FreeSerif from freefont
project do.

On my system (Ubuntu Dapper, matplotlib 0.87) the fonts DejaVu Sans
and FreeSerif show
the minus superscript in matplotlib plots, while FreeSans and DejaVu
Serif no (they show an empty square).

BTW, FreeSerif is quite good for my needs, thanks :).

John

Cheers,

~ Antonio

PS: John Travers, sorry for the private replies to you too.

···

On 3/13/07, John Travers <jtravs@...287...> wrote:

On 13/03/07, Antonino Ingargiola <tritemio@...287...> wrote: