Re: [Matplotlib-users] matplotlib svn bug: "Found an unknown keyword in AFM header..."?

2007-08-21 Thread Jouni K . Seppänen
Andrew Jaffe <[EMAIL PROTECTED]> writes: > I admit I don't understand the problems or the speccific code involved, > but I *think* it may be that the OSX-specific code isn't restricted to > afm files. Hence I wonder if the following is a fix: > -for f in OSXInstalledFonts(): > +

[Matplotlib-users] script stuck after show()

2007-08-21 Thread Wolfgang Kerzendorf
The script I am writing gets sometimes stuck after show(). Of course show() halts the script but when I close the window I want it to continue. Is there a sure way to kill off the pylab thread and continue like with a key press event on ESC and then calling a stop routine of the thread. Thanks

Re: [Matplotlib-users] matplotlib svn bug: "Found an unknown keyword in AFM header..."?

2007-08-21 Thread Andrew Jaffe
Hi- I admit I don't understand the problems or the speccific code involved, but I *think* it may be that the OSX-specific code isn't restricted to afm files. Hence I wonder if the following is a fix: % svn diff lib/matplotlib/font_manager.py Index: lib/matplotlib/font_manager.py ===

Re: [Matplotlib-users] XPDF works but Ghostscript Doesn't for .eps

2007-08-21 Thread Samuel M. Smith
When I diff the ghostscript generated eps which does not distill and the ps which does. There is not much difference. I know next to nothing about postscript but the differences have to do with the prolog and trailer and nothing else. %!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: 14 188 591 593 %%Hi

[Matplotlib-users] Store your data in a eps or ps file ?

2007-08-21 Thread Lingyun Yang
Hi, Is there any way to store the data of the plot into a ps or eps file ? sometimes I don't want to store both the data file and eps plot, but worried if someday later I need the specific numbers. Do I have to manipulate the ps file ? I know it's ascii, but is it dangerous ? Thanks. Ling

Re: [Matplotlib-users] matplotlib svn bug: "Found an unknown keyword in AFM header..."?

2007-08-21 Thread Jouni K . Seppänen
Eric Firing <[EMAIL PROTECTED]> writes: > I think that the problem is occurring in the last line. This remains to > be verified. It looks like *.afm files are being found, but when > createFontDict tries to parse them it doesn't find what it expects. The cause of the problem is a combination

Re: [Matplotlib-users] HOW TO: have multiple plot windows open at the same time?

2007-08-21 Thread Angus McMorland
On 22/08/07, Geoffrey Zhu <[EMAIL PROTECTED]> wrote: > On 8/20/07, Angus McMorland <[EMAIL PROTECTED]> wrote: > > On 21/08/07, Geoffrey Zhu <[EMAIL PROTECTED]> wrote: > > > Hi Everyone, > > > > > > I just started to use pylab, and there are two issues I can't figure > > > out a way to get around. >

Re: [Matplotlib-users] matplotlib svn bug: "Found an unknown keyword in AFM header..."?

2007-08-21 Thread Jouni K . Seppänen
Jouni K. Seppänen <[EMAIL PROTECTED]> writes: > Another data point: a recent svn version of matplotlib segfaults on my > OS X system, and ktrace suggests it occurs while it is reading > CharcoalCY.dfont. Looks like a freetype bug: the following code segfaults when linked against libfreetype.6.3.

Re: [Matplotlib-users] plotting images side by side

2007-08-21 Thread Eric Firing
Mark Bakker wrote: > After further anlysis, I still get the light colored lined at x=10 when > I zoom-in interactively on that line (still using TkAgg). Have you tried > zooming-in? > > I tried to zoom in on my eps and png files with the overlap, and they > look fine. > > That's all. I can liv

Re: [Matplotlib-users] plotting images side by side

2007-08-21 Thread Mark Bakker
After further anlysis, I still get the light colored lined at x=10 when I zoom-in interactively on that line (still using TkAgg). Have you tried zooming-in? I tried to zoom in on my eps and png files with the overlap, and they look fine. That's all. I can live with it just fine, but it is odd. St

Re: [Matplotlib-users] plotting images side by side

2007-08-21 Thread Mark Bakker
I use TkAgg on win32, and saw the line on screen and in png and eps files. I tried nudging it, but that didn't work either. So I tried the following overlap and still saw the line: a = ones((10,10)) imshow(a,extent=(0.0,11.0,0.0,10.0)) imshow(a,extent=(10.0,20.0,0.0,10.0)) axis((0,20,0,10)) So I f

Re: [Matplotlib-users] matplotlib svn bug: "Found an unknown keyword in AFM header..."?

2007-08-21 Thread Jouni K . Seppänen
Eric Firing <[EMAIL PROTECTED]> writes: > My guess is that this problem has been lurking all along, but was only > triggered when I changed font_manager to look for *all* system fonts > instead of only truetype, Another data point: a recent svn version of matplotlib segfaults on my OS X system

Re: [Matplotlib-users] plotting images side by side

2007-08-21 Thread Eric Firing
Mark, What backend? I don't see it when I run your lines in ipython -pylab, with gtkagg in use (linux). Have you tried using floating point extents and fudging them very slightly to overlap? Eric Mark Bakker wrote: > Hello all - > > I am trying to plot two images side byside. > The problem

Re: [Matplotlib-users] XPDF works but Ghostscript Doesn't for .eps

2007-08-21 Thread Darren Dale
On Tuesday 21 August 2007 12:46:05 pm Jouni K. Seppänen wrote: > Darren Dale <[EMAIL PROTECTED]> writes: > >> The testgs.eps (for test with ghostscript) does not convert to pdf > >> using either apple preview or adobe distiller (the adobe log is > >> included) > >> It does however convert successfu

Re: [Matplotlib-users] matplotlib svn bug: "Found an unknown keyword in AFM header..."?

2007-08-21 Thread Eric Firing
Andrew Jaffe wrote: > Michael Droettboom wrote: >> Andrew, >> >> I believe this bug was recently discussed on matplotlib-devel and is >> likely related to recent changes in the font manager cache. >> >> http://www.mail-archive.com/[EMAIL PROTECTED]/msg01531.html >> >> I believe it's being looked i

Re: [Matplotlib-users] XPDF works but Ghostscript Doesn't for .eps

2007-08-21 Thread Jouni K . Seppänen
Darren Dale <[EMAIL PROTECTED]> writes: >> The testgs.eps (for test with ghostscript) does not convert to pdf >> using either apple preview or adobe distiller (the adobe log is >> included) >> It does however convert successfully with epstopdf so there is some >> subtle difference. > > I'm sorry,

[Matplotlib-users] How to pause a program while button is not 3???

2007-08-21 Thread Eric Emsellem
Hi, I have a "simple" problem with mpl, but didn't find a way to solve it so far. Let's say I have a set of three 2Darrays I would like to : - load using imshow - then connect to the mouse click event and add all X and Y coordinates obtained when clicking (so each time I click, I'll get xc += ev

Re: [Matplotlib-users] XPDF works but Ghostscript Doesn't for .eps

2007-08-21 Thread Darren Dale
On Tuesday 21 August 2007 10:47:33 am you wrote: > > No, it is not a known problem. I have never had a problem > > converting an eps to > > pdf, using either setting. Are you using epstopdf? Could you post > > an example, > > something that actually illustrates a problem? > > Attached is a folder

Re: [Matplotlib-users] XPDF works but Ghostscript Doesn't for .eps

2007-08-21 Thread Samuel M. Smith
> > No, it is not a known problem. I have never had a problem > converting an eps to > pdf, using either setting. Are you using epstopdf? Could you post > an example, > something that actually illustrates a problem? Attached at least in a mail direct to you is a folder with testgs.eps, test

Re: [Matplotlib-users] matplotlib svn bug: "Found an unknown keyword in AFM header..."?

2007-08-21 Thread Andrew Jaffe
Michael Droettboom wrote: > Andrew, > > I believe this bug was recently discussed on matplotlib-devel and is > likely related to recent changes in the font manager cache. > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg01531.html > > I believe it's being looked into, but I haven't seen a r

Re: [Matplotlib-users] matplotlib svn bug: "Found an unknown keyword in AFM header..."?

2007-08-21 Thread Michael Droettboom
Andrew, I believe this bug was recently discussed on matplotlib-devel and is likely related to recent changes in the font manager cache. http://www.mail-archive.com/[EMAIL PROTECTED]/msg01531.html I believe it's being looked into, but I haven't seen a resolution (unless I missed it). Cheers,

Re: [Matplotlib-users] matplotlib and interactive use

2007-08-21 Thread Wolfgang Kerzendorf
That server sounds like a good idea. At the moment I have a different problem: If I close the window sometimes the script does not continue. Is there any function that I can call which closes pylab and continues with the script? Also, how can I halt the script after the first issue of show(). th

Re: [Matplotlib-users] Width of tick lines

2007-08-21 Thread John Hunter
On 8/21/07, Torsten Hahn <[EMAIL PROTECTED]> wrote: > The problem is, that there only the major ticklines are returned by > ax.get_xticklines(). How do i access (and modify) the minor ticklines? In [80]: for tick in ax.xaxis.get_major_ticks(): print tick.tick1line, tick.tick2line : Li

[Matplotlib-users] Newbie matplotlib questions re: pie charts and display

2007-08-21 Thread Alex Pounds
Hello, I've recently been working with matplotlib to create some charts of some data I've gathered. I've been impressed with how easy it is to use, but I have a few questions. I'd appreciate any help you can offer me with the following: 1. Just what does axes() do with pie charts, anyway? I've t

Re: [Matplotlib-users] Width of tick lines

2007-08-21 Thread Torsten Hahn
Am 21.08.2007 um 10:30 schrieb Eric Firing: > Torsten Hahn wrote: >> Hello, >> I am looking for an way to set the width of the tick lines in a >> plot. I have not found any rc parameter for this. > > Good point; it does seem to be a gap in the configurability. Would be nice to have sopmething

[Matplotlib-users] plotting images side by side

2007-08-21 Thread Mark Bakker
Hello all - I am trying to plot two images side byside. The problem is that I get a white line between them. Even when the extent of the two images are exactly next to eachother. Does anybody know how to get rid of the white line? Here's an easy example: from pylab import * a = ones((10,10)) imsh

[Matplotlib-users] matplotlib svn bug: "Found an unknown keyword in AFM header..."?

2007-08-21 Thread Andrew Jaffe
Hi All, I've got Intel OSX 10.4.10 with SVN versions of numpy, scipy and matplotlib. The latest matplotlib seems to fail on "import pylab" or "ipython -pylab" with very many lines of the form "Found an unknown keyword in AFM header (was" followed either by a legit character or lots of junk. F

Re: [Matplotlib-users] Width of tick lines

2007-08-21 Thread Eric Firing
Torsten Hahn wrote: > Hello, > > I am looking for an way to set the width of the tick lines in a plot. > I have not found any rc parameter for this. Good point; it does seem to be a gap in the configurability. > > Doing: > > plot(...) > c=gca() > tl=c.get_ticklines() > > gives a list of tic

[Matplotlib-users] Width of tick lines

2007-08-21 Thread Torsten Hahn
Hello, I am looking for an way to set the width of the tick lines in a plot. I have not found any rc parameter for this. Doing: plot(...) c=gca() tl=c.get_ticklines() gives a list of tickline objects. Every tickline object has a method tl[0].set_linewidth(). Calling this method with differe