From: <md...@us...> - 2007-11-12 18:54:54
|
Revision: 4233 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4233&view=rev Author: mdboom Date: 2007-11-12 10:54:49 -0800 (Mon, 12 Nov 2007) Log Message: ----------- [ 1660316 ] PolyInteractor verts call Should be calling get_verts() instead of .verts. (Thanks JPaul Rinehimer) Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/patches.py Modified: trunk/matplotlib/lib/matplotlib/patches.py =================================================================== --- trunk/matplotlib/lib/matplotlib/patches.py 2007-11-12 18:53:25 UTC (rev 4232) +++ trunk/matplotlib/lib/matplotlib/patches.py 2007-11-12 18:54:49 UTC (rev 4233) @@ -992,7 +992,7 @@ raise RuntimeError('You must first add the polygon to a figure or canvas before defining the interactor') canvas = poly.figure.canvas self.poly = poly - self.poly.verts = list(self.poly.verts) + self.poly.verts = list(self.poly.get_verts()) x, y = zip(*self.poly.verts) self.line = lines.Line2D(x,y,marker='o', markerfacecolor='r') #self._update_line(poly) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |