From: <jor...@bo...> - 2008-01-29 19:45:29
Attachments:
marker_bug.txt
marker_bug.py
|
Hi, I think there is a bug in the pdf backend (png-files save ok) that makes plots crash when they contain a marker. The attached script crashes on the last savefig. I have also attached a traceback. I run matplotlib-svn-4904 on windows with python 2.4 /Jörgen |
From: Michael D. <md...@st...> - 2008-01-29 19:59:46
|
Interesting. I can't reproduce this with Python-2.5 on Linux. What version of numpy do you have installed? Can you send your matplotlibrc file? Cheers, Mike Jörgen Stenarson wrote: > Hi, > > I think there is a bug in the pdf backend (png-files save ok) that makes > plots crash when they contain a marker. > > The attached script crashes on the last savefig. I have also attached a > traceback. > > I run matplotlib-svn-4904 on windows with python 2.4 > > /Jörgen > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
From: <jor...@bo...> - 2008-01-29 20:24:49
Attachments:
matplotlibrc
|
Michael Droettboom skrev: > Interesting. I can't reproduce this with Python-2.5 on Linux. What > version of numpy do you have installed? Can you send your matplotlibrc > file? > I tried upgrading numpy to the latest svn version but I still see the same problem. My matplotlibrc file is just the default created at buildtime, I have attached it. /Jörgen |
From: Michael D. <md...@st...> - 2008-01-29 20:33:55
|
Ok, to save me the trouble of installing Python-2.4 (which doesn't feel like the culprit, but appears to be the only variable other than platform) I seem to recall a discussion on numpy about coercion of scalars to Python int's that may be the culprit here. Can you please add the following line above the line where the exception is raised in path.py, line 201, and then send me the output: print code, type(code), codes, type(codes) Also, does changing: num_vertices = NUM_VERTICES[code] to num_vertices = NUM_VERTICES[int(code)] resolve the problem? Cheers, Mike Jörgen Stenarson wrote: > Michael Droettboom skrev: >> Interesting. I can't reproduce this with Python-2.5 on Linux. What >> version of numpy do you have installed? Can you send your >> matplotlibrc file? >> > > I tried upgrading numpy to the latest svn version but I still see the > same problem. My matplotlibrc file is just the default created at > buildtime, I have attached it. > > /Jörgen > > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
From: Michael D. <md...@st...> - 2008-01-29 21:15:18
|
Ok. I'll change this in SVN. Nils Wagner wrote: > On Tue, 29 Jan 2008 15:33:46 -0500 > Michael Droettboom <md...@st...> wrote: >> Ok, to save me the trouble of installing Python-2.4 (which doesn't >> feel like the culprit, but appears to be the only variable other than >> platform) I seem to recall a discussion on numpy about coercion of >> scalars to Python int's that may be the culprit here. Can you please >> add the following line above the line where the exception is raised in >> path.py, line 201, and then send me the output: >> >> print code, type(code), codes, type(codes) >> > > 1 <type 'numpy.uint8'> [1 2 1 2] <type 'numpy.ndarray'> > 2 <type 'numpy.uint8'> [1 2 1 2] <type 'numpy.ndarray'> > 1 <type 'numpy.uint8'> [1 2 1 2] <type 'numpy.ndarray'> > 2 <type 'numpy.uint8'> [1 2 1 2] <type 'numpy.ndarray'> > >> Also, does changing: >> >> num_vertices = NUM_VERTICES[code] >> >> to >> >> num_vertices = NUM_VERTICES[int(code)] >> >> resolve the problem? > > Yes. > > Cheers, > Nils > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
From: <jor...@bo...> - 2008-01-30 18:50:02
|
Michael Droettboom skrev: > Ok. I'll change this in SVN. > It works for me now as well. /Jörgen |