From: David M. K. <Dav...@ir...> - 2008-09-08 13:24:09
|
Hi, I am getting errors any time I try to plot with markers for the points (using the GTKAgg backend). My SVN repo copy has a lot of my own changes in it, but I don't think these errors are associated with those changes. Can someone confirm this is a bug? Example below. Thanks, David In [16]: clf(),plot([1,2],[1,2],'--') Out[16]: (None, [<matplotlib.lines.Line2D object at 0x9522d4c>]) In [17]: clf(),plot([1,2],[1,2],'--o') ------------------------------------------------------------ Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_gtk.py", line 333, in expose_event self._render_figure(self._pixmap, w, h) File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py", line 75, in _render_figure FigureCanvasAgg.draw(self) File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", line 261, in draw self.figure.draw(self.renderer) File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line 759, in draw for a in self.axes: a.draw(renderer) File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 1525, in draw a.draw(renderer) File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line 439, in draw markerFunc(renderer, gc, tpath, affine.frozen()) File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line 752, in _draw_circle rgbFace) <type 'exceptions.ValueError'>: Codes array is wrong length Out[17]: (None, [<matplotlib.lines.Line2D object at 0x95b1dcc>]) -- ********************************** David M. Kaplan Charge de Recherche 1 Institut de Recherche pour le Developpement Centre de Recherche Halieutique Mediterraneenne et Tropicale av. Jean Monnet B.P. 171 34203 Sete cedex France Phone: +33 (0)4 99 57 32 27 Fax: +33 (0)4 99 57 32 95 http://www.ur097.ird.fr/team/dkaplan/index.html ********************************** |
From: John H. <jd...@gm...> - 2008-09-08 14:04:41
|
On Mon, Sep 8, 2008 at 8:23 AM, David M. Kaplan <Dav...@ir...> wrote: > Hi, > > I am getting errors any time I try to plot with markers for the points > (using the GTKAgg backend). My SVN repo copy has a lot of my own > changes in it, but I don't think these errors are associated with those > changes. Can someone confirm this is a bug? Example below. I'm not seeing it on gtkagg using svn HEAD JDH |
From: Jae-Joon L. <lee...@gm...> - 2008-09-08 17:04:30
|
> > I am getting errors any time I try to plot with markers for the points > (using the GTKAgg backend). My SVN repo copy has a lot of my own > changes in it, but I don't think these errors are associated with those > changes. Can someone confirm this is a bug? Example below. I also don't see that error. Is your matplotlib code up to date? There has been a bug which might be related with yours (at least the raised Exception is same), but this has been fixed in the current SVN. http://sourceforge.net/mailarchive/forum.php?thread_name=6e8d907b0808181233g4657bd05ybbc2fe8caf8fe68e%40mail.gmail.com&forum_name=matplotlib-devel -JJ > > Thanks, > David > > In [16]: clf(),plot([1,2],[1,2],'--') > Out[16]: (None, [<matplotlib.lines.Line2D object at 0x9522d4c>]) > > In [17]: clf(),plot([1,2],[1,2],'--o') > ------------------------------------------------------------ > Traceback (most recent call last): > File > "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_gtk.py", > line 333, in expose_event > self._render_figure(self._pixmap, w, h) > File > "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py", line 75, in _render_figure > FigureCanvasAgg.draw(self) > File > "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", > line 261, in draw > self.figure.draw(self.renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line > 759, in draw > for a in self.axes: a.draw(renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 1525, > in draw > a.draw(renderer) > File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line 439, > in draw > markerFunc(renderer, gc, tpath, affine.frozen()) > File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line 752, > in _draw_circle > rgbFace) > <type 'exceptions.ValueError'>: Codes array is wrong length > > Out[17]: (None, [<matplotlib.lines.Line2D object at 0x95b1dcc>]) > > -- > ********************************** > David M. Kaplan > Charge de Recherche 1 > Institut de Recherche pour le Developpement > Centre de Recherche Halieutique Mediterraneenne et Tropicale > av. Jean Monnet > B.P. 171 > 34203 Sete cedex > France > > Phone: +33 (0)4 99 57 32 27 > Fax: +33 (0)4 99 57 32 95 > http://www.ur097.ird.fr/team/dkaplan/index.html > ********************************** > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > |
From: David M. K. <Dav...@ir...> - 2008-09-08 19:03:05
|
Hi, I apologize for the false alarm - the problem seems to have been somehow due to my versions of numpy, scipy and matplotlib getting out of sync. It now appears to be fixed. Cheers, David On Mon, 2008-09-08 at 13:04 -0400, Jae-Joon Lee wrote: > > > > I am getting errors any time I try to plot with markers for the points > > (using the GTKAgg backend). My SVN repo copy has a lot of my own > > changes in it, but I don't think these errors are associated with those > > changes. Can someone confirm this is a bug? Example below. > > I also don't see that error. > Is your matplotlib code up to date? > There has been a bug which might be related with yours (at least the > raised Exception is same), but this has been fixed in the current SVN. > > http://sourceforge.net/mailarchive/forum.php?thread_name=6e8d907b0808181233g4657bd05ybbc2fe8caf8fe68e%40mail.gmail.com&forum_name=matplotlib-devel > > -JJ > > > > > > > > > > > Thanks, > > David > > > > In [16]: clf(),plot([1,2],[1,2],'--') > > Out[16]: (None, [<matplotlib.lines.Line2D object at 0x9522d4c>]) > > > > In [17]: clf(),plot([1,2],[1,2],'--o') > > ------------------------------------------------------------ > > Traceback (most recent call last): > > File > > "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_gtk.py", > > line 333, in expose_event > > self._render_figure(self._pixmap, w, h) > > File > > "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py", line 75, in _render_figure > > FigureCanvasAgg.draw(self) > > File > > "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py", > > line 261, in draw > > self.figure.draw(self.renderer) > > File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line > > 759, in draw > > for a in self.axes: a.draw(renderer) > > File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 1525, > > in draw > > a.draw(renderer) > > File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line 439, > > in draw > > markerFunc(renderer, gc, tpath, affine.frozen()) > > File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line 752, > > in _draw_circle > > rgbFace) > > <type 'exceptions.ValueError'>: Codes array is wrong length > > > > Out[17]: (None, [<matplotlib.lines.Line2D object at 0x95b1dcc>]) > > > > -- > > ********************************** > > David M. Kaplan > > Charge de Recherche 1 > > Institut de Recherche pour le Developpement > > Centre de Recherche Halieutique Mediterraneenne et Tropicale > > av. Jean Monnet > > B.P. 171 > > 34203 Sete cedex > > France > > > > Phone: +33 (0)4 99 57 32 27 > > Fax: +33 (0)4 99 57 32 95 > > http://www.ur097.ird.fr/team/dkaplan/index.html > > ********************************** > > > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > > Build the coolest Linux based applications with Moblin SDK & win great prizes > > Grand prize is a trip for two to an Open Source event anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Matplotlib-devel mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > > -- ********************************** David M. Kaplan Charge de Recherche 1 Institut de Recherche pour le Developpement Centre de Recherche Halieutique Mediterraneenne et Tropicale av. Jean Monnet B.P. 171 34203 Sete cedex France Phone: +33 (0)4 99 57 32 27 Fax: +33 (0)4 99 57 32 95 http://www.ur097.ird.fr/team/dkaplan/index.html ********************************** |