On 3/13/07, John Hunter <[EMAIL PROTECTED]> wrote:
> On 3/13/07, Antonino Ingargiola <[EMAIL PROTECTED]> wrote:
>
> > 1. Use the unicode string: xlabel(u'Wavelength [μm]')
> > 2. Use mathtext: xlabel(r'$\rm{Wavelength [\mu m]}$')
> > 3. Use usetex: rc(text, usetex=True), xlabel(r'Wavelength [$\rm{\mu m}$]')
> >
> > I have some problem with each method (any hint is appreciated).
>
> What is the problem with method 3?

The \mu character is not in roman font but in italics, while the 'm'
is correctly set to roman. In latex I use the SIunits package to write
the units, so the fonts are correctly in roman even in math
environment. It would be useful something like that in matplotlib too.
However I'll be happy even if I could write greek characters in roman
fonts.

Maybe it's a problem related to the particular font used...

Furthermore font rendering it's a bit odd: the fonts appears to be
bolder than normal Computer Modern fonts used in the latex document.
I've tried to change the font weight (in matplotlibrc) without any
effect. On the contrary mathtext seems to use a font like Times, which
should be bolder, but the overall aspect is lighter.

How can I change the font used by 'mathtext' or 'usetex'? All I want
is use the standard ae fonts I'm using in latex.

Many thanks.

> JDH
>

Cheers,

 ~ Antonio
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to