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...