From: Graeme Lufkin <graeme.lufkin@gm...>  20060125 19:28:04

I'm quite excited about usetex; it looks like exactly what I want.=20 I'm using matplotlib 0.86.2, dvipng 1.7, xpdf 3.00 and gnughostscript8.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 yaxis 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.=20 Not sure how this could happen. Thanks for your great work so far. tex_demo.py: rc('text', usetex=3DTrue) #figure(1) #ax =3D axes([0.1, 0.1, 0.8, 0.7]) t =3D arange(0.0, 1.0+0.01, 0.01) s =3D 50 * cos(2*2*pi*t)+50 plot(t, s) xlabel(r'\bf{time (s)}') ylabel(r'\it{voltage (mV)}',fontsize=3D16) title(r"\TeX\ is Number $\displaystyle\sum_{n=3D1}^\infty\frac{e^{i\pi}}{2^n}$!", fontsize=3D16, color=3D'r') grid(True) savefig('tex_demo') show()   Graeme graeme.lufkin@... 