From: Florian L. <mai...@xg...> - 2010-01-29 19:49:58
|
Hello, I try to use LaTeX in my plot. I follow the instructions from http://www.scipy.org/Cookbook/Matplotlib/UsingTex florian@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: florian@horus:~> which latex /usr/local/bin/latex florian@horus:~> which dvipng /usr/local/bin/dvipng florian@horus:~> which gs /usr/bin/gs Any idea what could be wrong? Thanks, Florian |