From: <hu...@ya...> - 2006-08-24 19:04:04
|
It=C5=9B working now, thanks. Just a remark why the fonts must be in mpl-da= ta and=20 why matplotlib is not using the fonts who are in the system?=20 N. Le jeudi 24 ao=C3=BBt 2006 13:56, vous avez =C3=A9crit=C2=A0: > On Thursday 24 August 2006 13:42, hu...@ya... wrote: > > Hello, > > > > I saw that mathtext2 was include in the svn, I try to test it but even > > the demo is not working with the error message: > > > > > > > > ValueError: unrecognized symbol "\frac3" > > WARNING: Failure executing file: <mathtext2_demo.py> > > The demo doesn't work out of the box. You need to install download the > freefont fonts into your mpl-data directory, and then add the following > before the pylab import in mathtext2_demo.py: > > from matplotlib import rcParams > rcParams['mathtext2'] =3D True > rcParams['mathtext.rm'] =3D 'FreeSerif.ttf' > rcParams['mathtext.it'] =3D 'FreeSerifItalic.ttf' > rcParams['mathtext.tt'] =3D 'FreeMono.ttf' > rcParams['mathtext.mit'] =3D 'FreeSerifItalic.ttf' > rcParams['mathtext.cal'] =3D 'FreeSansOblique.ttf' > rcParams['mathtext.nonascii'] =3D 'FreeSerif.ttf' |