usetex inconsistency

I'm quite excited about usetex; it looks like exactly what I want.
I'm using matplotlib 0.86.2, dvipng 1.7, xpdf 3.00 and
gnu-ghostscript-8.16. I've got two issues.
  First, I tried setting ps.usedistiller to xpdf, and got the error
'file not found: ~/tmp/<long hash here>.eps'. If I look, a '.ps' file
is there, which is probably what the distilling process means. Help?
  Second: In the script below, I've edited tex_demo.py to reveal two
bugs. First, if I don't specify the right size axes, the top plot
label gets cut off, presumably because the height of the latex
fragment isn't calculated right or something. Second, I've increased
the amplitude of the function, making the y-axis ticks integral. With
this change, the y axis ticks are now back in the default matplotlib
font, instead of Computer Modern as when they were between 0 and 2.
Not sure how this could happen.
  Thanks for your great work so far.

tex_demo.py:
rc('text', usetex=True)
#figure(1)
#ax = axes([0.1, 0.1, 0.8, 0.7])
t = arange(0.0, 1.0+0.01, 0.01)
s = 50 * cos(2*2*pi*t)+50
plot(t, s)

xlabel(r'\bf{time (s)}')
ylabel(r'\it{voltage (mV)}',fontsize=16)
title(r"\TeX\ is Number
$\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!",
      fontsize=16, color='r')
grid(True)
savefig('tex_demo')
show()

···

--
    -- Graeme
    graeme.lufkin@...287...

My guess on the first problem is that you don't have ps2eps installed.
This is a dependency that I am not sure is checked. The output of
this command should create an .eps file in the tmp folder you were
looking at.

Try typing ps2eps -v at a command prompt and see if you have it. You
also need ps2pdf and pdftops, but if the message is complaining about
an eps file, ps2eps is likely the problem. I think these commands are
mainly ghostscript wrappers, but I am not sure.

Ryan

···

On 1/25/06, Graeme Lufkin <graeme.lufkin@...287...> wrote:

  I'm quite excited about usetex; it looks like exactly what I want.
I'm using matplotlib 0.86.2, dvipng 1.7, xpdf 3.00 and
gnu-ghostscript-8.16. I've got two issues.
  First, I tried setting ps.usedistiller to xpdf, and got the error
'file not found: ~/tmp/<long hash here>.eps'. If I look, a '.ps' file
is there, which is probably what the distilling process means. Help?
  Second: In the script below, I've edited tex_demo.py to reveal two
bugs. First, if I don't specify the right size axes, the top plot
label gets cut off, presumably because the height of the latex
fragment isn't calculated right or something. Second, I've increased
the amplitude of the function, making the y-axis ticks integral. With
this change, the y axis ticks are now back in the default matplotlib
font, instead of Computer Modern as when they were between 0 and 2.
Not sure how this could happen.
  Thanks for your great work so far.

tex_demo.py:
rc('text', usetex=True)
#figure(1)
#ax = axes([0.1, 0.1, 0.8, 0.7])
t = arange(0.0, 1.0+0.01, 0.01)
s = 50 * cos(2*2*pi*t)+50
plot(t, s)

xlabel(r'\bf{time (s)}')
ylabel(r'\it{voltage (mV)}',fontsize=16)
title(r"\TeX\ is Number
\\displaystyle\\sum\_\{n=1\}^\\infty\\frac\{\-e^\{i\\pi\}\}\{2^n\}!",
      fontsize=16, color='r')
grid(True)
savefig('tex_demo')
show()

--
    -- Graeme
    graeme.lufkin@...287...

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

D'oh! I thought I had caught all the dependencies. That did it for
the distilling, thanks. Anyone else with this problem, ps2eps can be
found at http://www.tm.uka.de/~bless/ps2eps.

···

On 1/25/06, Ryan Krauss <ryanlists@...287...> wrote:

My guess on the first problem is that you don't have ps2eps installed.
This is a dependency that I am not sure is checked. The output of
this command should create an .eps file in the tmp folder you were
looking at.

--
    -- Graeme
    graeme.lufkin@...287...

There was a bug in the function that checks for ps2eps. It is fixed in cvs.

···

On Wednesday 25 January 2006 14:59, Ryan Krauss wrote:

My guess on the first problem is that you don't have ps2eps installed.
This is a dependency that I am not sure is checked.