Re: [Matplotlib-users] Dollar sign in TeX plot label

2010-08-02 Thread Eduardo Gonzalez Solares
You could use pylab.ylabel(r"Profit (\verb+$+)") or use another font. Eduardo On 2 Aug 2010, at 15:50, Benjamin Root wrote: > Hmmm, if I comment out the .savefig() and use the show(), I get no errors. > But I get the same key error if I try to save it as a pdf. However, if I > save it as

Re: [Matplotlib-users] Dollar sign in TeX plot label

2010-08-02 Thread Benjamin Root
Hmmm, if I comment out the .savefig() and use the show(), I get no errors. But I get the same key error if I try to save it as a pdf. However, if I save it as a png, I get no problems. Maybe it is a problem with the pdf backend? Ben Root On Mon, Aug 2, 2010 at 9:29 AM, Richard Lincoln wrote: >

Re: [Matplotlib-users] Dollar sign in TeX plot label

2010-08-02 Thread Richard Lincoln
On 2 August 2010 15:19, Darren Dale wrote: > On Mon, Aug 2, 2010 at 10:15 AM, Richard Lincoln > wrote: >> I am having trouble creating a plot using TeX which has a $ sign in >> one of the axis labels.  If I run: >> >> import matplotlib >> >> matplotlib.rc('font', **{'family': 'serif', 'serif': [

Re: [Matplotlib-users] Dollar sign in TeX plot label

2010-08-02 Thread Darren Dale
On Mon, Aug 2, 2010 at 10:15 AM, Richard Lincoln wrote: > I am having trouble creating a plot using TeX which has a $ sign in > one of the axis labels.  If I run: > > import matplotlib > > matplotlib.rc('font', **{'family': 'serif', 'serif': ['Computer Modern > Roman']}) > matplotlib.rc('text', u

[Matplotlib-users] Dollar sign in TeX plot label

2010-08-02 Thread Richard Lincoln
I am having trouble creating a plot using TeX which has a $ sign in one of the axis labels. If I run: import matplotlib matplotlib.rc('font', **{'family': 'serif', 'serif': ['Computer Modern Roman']}) matplotlib.rc('text', usetex=True) import pylab pylab.figure() pylab.plot([0.0, 1.0]) pylab.y