Hello,

I try to use LaTeX in my plot. I follow the instructions from 
http://www.scipy.org/Cookbook/Matplotlib/UsingTex

flor...@horus:~> cat .matplotlib/matplotlibrc
text.usetex        : true

My plotting code looks like:

Ma = arange(1.0, 5.0, 0.01)
Ts = [T(i) for i in Ma]  # BTW: Is there a way to spare this line?
plot(Ma, Ts, label=r'/frac{T2}{T1}')

Running the script gives:

python Stossverlauf.py --verbose-helpful

$HOME=/home/florian
CONFIGDIR=/home/florian/.matplotlib
matplotlib data path /usr/lib64/python2.6/site-packages/matplotlib/mpl-data
loaded rc file /home/florian/.matplotlib/matplotlibrc
matplotlib version 0.99.1.1
verbose.level helpful
interactive is False
units is False
platform is linux2
Using fontManager instance from /home/florian/.matplotlib/fontList.cache
/usr/lib/python2.6/site-packages/pytz/tzinfo.py:5: DeprecationWarning: the sets 
module is deprecated
  from sets import Set
backend Agg version v2.2


and that's all, no plot window appears, the script is finished. If I remove the 
matplotlibrc everything works fine (of course no LaTeX).
I think all the necessary programs are in place:

flor...@horus:~> which latex
/usr/local/bin/latex
flor...@horus:~> which dvipng
/usr/local/bin/dvipng
flor...@horus:~> which gs
/usr/bin/gs

Any idea what could be wrong?

Thanks,

Florian

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to