From: Darren D. <dsd...@gm...> - 2009-09-16 15:46:56
|
On Wed, Sep 16, 2009 at 11:13 AM, Diaboflo <fh...@hw...> wrote: > > The simplest case would be: > > import pylab > pylab.plot([1,2]) > pylab.xlabel("$\phi$") Does this help: pylab.xlabel(r"$\phi$") > pylab.savefig("fig.png") > pylab.savefig("fig.eps") > > The png has the xlabel as phi, the xlabel in the eps file is just empty. > > I use python 2.5, don't really know which version of matplotlib is installed > but it is not older than a year. > > Here the latex part of matplotlibrc: > > ### LaTeX customizations. See > http://www.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex > #text.usetex : False # use latex for all text handling. The > following fonts > ... > #text.latex.unicode : False # use "ucs" and "inputenc" LaTeX packages for > handling > ... > #text.latex.preamble : # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX > FAILURES > ... > #text.dvipnghack : False # some versions of dvipng don't handle > ... > #text.markup : 'plain' # Affects how text, such as titles and > labels, are > > Thanks for your answers so far. |