Re: [matplotlib-devel] usetex w/ preview.sty

2009-01-05 Thread Michael Droettboom
Jouni K. Seppänen wrote: Michael Droettboom writes: when running usetex_fonteffects.py [...] TypeError: coercing to Unicode: need string or buffer, NoneType found -> file = open(input, 'rb') Perhaps your TeX installation doesn't have the font. If you run "kpsewhich utmr8a.pfb", what

Re: [matplotlib-devel] usetex w/ preview.sty

2009-01-05 Thread Michael Droettboom
Jouni: your latest commit resolves the issue for me. Thanks! Jae-Joon: Your preview.sty work seems to work great with the PDF backend (for me, at least). Cheers, Mike Michael Droettboom wrote: > > Jouni K. Seppänen wrote: >> Michael Droettboom writes: >> >> >>> when running usetex_fonteffec

Re: [matplotlib-devel] usetex w/ preview.sty

2009-01-05 Thread Jouni K . Seppänen
Michael Droettboom writes: > The output of "python usetex_texteffects.py --verbose-debug" is attached. Thanks! The problem seems to be that your TeX configuration (pdftex.map) specifies using Helvetica without embedding it into the pdf file. This is deprecated in the PDF standard (PDF viewer app

Re: [matplotlib-devel] usetex w/ preview.sty

2009-01-05 Thread Michael Droettboom
Sorry about the wild good chase. I had fixed up an earlier exception which was simply a problem with formatting a verbose message. That gives this, when running usetex_fonteffects.py (with all rcParams at defaults): Traceback (most recent call last): File "usetex_fonteffects.py", line 22, i

Re: [matplotlib-devel] usetex w/ preview.sty

2009-01-05 Thread Michael Droettboom
Thanks for the explanation. The TeX install I have is the stock one with RHEL4, which is fairly old at this point. I've had a number of other problems with it as well (such as it not being compatible with Sphinx). It's nice to know that matplotlib is at least handling this situation without

Re: [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-01-05 Thread Andrew Straw
Hi Sandro, It's great news that a book may come out on MPL. Speaking as an aspiring university professor in neuroscience, I would like to see something that could be used as a resource for undergraduate students just learning Python and MPL. Due to this perspective, I think such a book would cove

Re: [matplotlib-devel] usetex w/ preview.sty

2009-01-05 Thread Jouni K . Seppänen
Michael Droettboom writes: > when running usetex_fonteffects.py [...] > TypeError: coercing to Unicode: need string or buffer, NoneType found > -> file = open(input, 'rb') Perhaps your TeX installation doesn't have the font. If you run "kpsewhich utmr8a.pfb", what do you get? If it does return s

Re: [matplotlib-devel] usetex w/ preview.sty

2009-01-05 Thread Jae-Joon Lee
On Mon, Jan 5, 2009 at 9:06 AM, Michael Droettboom wrote: > Also, it seems like the text alignment in the PS output is too low by a > small constant factor. I'm not quite sure why this is happening. My guess is that it has something to with the usage of psfrag in the ps backend, e.g., the differe

Re: [matplotlib-devel] usetex w/ preview.sty

2009-01-05 Thread Jouni K . Seppänen
Michael Droettboom writes: > I'm currently getting this traceback with the PDF backend, whether > "text.latex.preview" is True or False -- so it may be unrelated to your > change, but I'm unable to test PDF at the moment. Based on the traceback, it looks like I have broken something recently -

Re: [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-01-05 Thread Russell E. Owen
In article <8b2d7b4d0901050152p4c7487a8m21fb7fb823297...@mail.gmail.com>, "Sandro Tosi" wrote: > Hello and Happy 2009! > > I received the interesting proposal to author a book on Matplotlib, > the powerful 2D plotting library for Python. > > While preparing the arguments list, I'd like to hea

[matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-01-05 Thread Sandro Tosi
Hello and Happy 2009! I received the interesting proposal to author a book on Matplotlib, the powerful 2D plotting library for Python. While preparing the arguments list, I'd like to hear even your opinion, because different points-of-view will lead to a better product. Some basic question I'd l

Re: [matplotlib-devel] usetex w/ preview.sty

2009-01-05 Thread Michael Droettboom
Very nice! I'm currently getting this traceback with the PDF backend, whether "text.latex.preview" is True or False -- so it may be unrelated to your change, but I'm unable to test PDF at the moment. Traceback (most recent call last): File "usetex_baseline_test.py", line 75, in plt.savef

Re: [matplotlib-devel] [Matplotlib-users] What would you like to see in a book about Matplotlib?

2009-01-05 Thread Sandro Tosi
Hello João, thanks for replying On Mon, Jan 5, 2009 at 13:40, João Luís Silva wrote: > Sandro Tosi wrote: >> - what are the (basic) things that, when you were beginning to use >> matplotlib, you wanted to see grouped up but couldn't find? > > I don't know if you consider it basic or not, but I wo

Re: [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-01-05 Thread Sandro Tosi
Hello Andrew, thanks for taking the time to reply. First of all, let me clarify that I received a proposal (and not the opposite) so some decision were already made about the book format. On Mon, Jan 5, 2009 at 20:00, Andrew Straw wrote: > Hi Sandro, > > It's great news that a book may come out

Re: [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-01-05 Thread Sandro Tosi
Hello Russell, thanks for getting back to me On Mon, Jan 5, 2009 at 20:29, Russell E. Owen wrote: > In article > <8b2d7b4d0901050152p4c7487a8m21fb7fb823297...@mail.gmail.com>, > "Sandro Tosi" wrote: >> - what are you using matplotlib for? > > Plotting data from a networked Tkinter application.