[matplotlib-devel] usetex='True' and annotate generates a traceback for certain texts

2009-04-06 Thread João Luís Silva
Hi, annotate and usetex='True' can trigger a traceback if the text is invalid. A space or an underscore generate this behavior, I haven't tried others. Ubuntu 8.10, mpl svn (rev. 7032). Once again feel free to ignore this, I just feel compelled to report all mpl bugs :) JLS Example: #-

Re: [matplotlib-devel] usetex='True' and annotate generates a traceback for certain texts

2009-04-06 Thread Jouni K . Seppänen
João Luís Silva writes: > annotate and usetex='True' can trigger a traceback if the text is > invalid. A space or an underscore generate this behavior, I haven't > tried others. Thanks for the report it should be fixed now. You still get a traceback, but now it should make more sense. -- Jou

[matplotlib-devel] cannot use some fonts on pdf, ps, eps backends

2009-04-06 Thread Andrew Hawryluk
When I use Arial Unicode MS within matplotlib, it cannot save to any PostScript-based formats (pdf, eps, ps). Apparently, the font has no glyph names: Traceback (most recent call last): File "G:\Chem2009\GK6 Fan Dynamics\plotFanCurve.py", line 31, in p.savefig('memo/figures/normalizedFanCur

Re: [matplotlib-devel] cannot use some fonts on pdf, ps, eps backends

2009-04-06 Thread Jouni K . Seppänen
"Andrew Hawryluk" writes: > When I use Arial Unicode MS within matplotlib, it cannot save to any > PostScript-based formats (pdf, eps, ps). Apparently, the font has no > glyph names: [...] > glyph_name = font.get_glyph_name(gind) > RuntimeError: Face has no glyph names [...] > I know that the

Re: [matplotlib-devel] cannot use some fonts on pdf, ps, eps backends

2009-04-06 Thread Andrew Hawryluk
> -Original Message- > From: Jouni K. Seppänen [mailto:j...@iki.fi] > Sent: 6 Apr 2009 1:20 PM > To: matplotlib-devel@lists.sourceforge.net > Subject: Re: [matplotlib-devel] cannot use some fonts on pdf, ps,eps > backends > > "Andrew Hawryluk" writes: > > > When I use Arial Unicode MS wi

Re: [matplotlib-devel] OpenGL backend and pyglet expertiments

2009-04-06 Thread Cohen-Tanugi Johann
There has been a recent thread discussing sympy interface to pyglet in the context of matplotlib refactoring of the 3D code. See thread named 'Updating MPlot3D to a more recent matplotlib.' If you are porting pyglet interface to Ipython, Ondrej might be happy to see his sympy 3D plotting routine

Re: [matplotlib-devel] cannot use some fonts on pdf, ps, eps backends

2009-04-06 Thread Jouni K . Seppänen
"Andrew Hawryluk" writes: >> Does it help if you set ps.fonttype and pdf.fonttype to 42 in >> matplotlibrc? > > Yes, that works very well, thanks! However, it now embeds the entire > font rather than a subset. This results in a PDF of 14.4 MB with this > font. I ran it through ghostscript to get