|
From: <ry...@us...> - 2008-10-29 03:36:33
|
Revision: 6344
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6344&view=rev
Author: ryanmay
Date: 2008-10-29 03:36:27 +0000 (Wed, 29 Oct 2008)
Log Message:
-----------
Fix DraggableRectangle event handling example to no longer use the (now removed) Rectangle.xy property.
Modified Paths:
--------------
trunk/matplotlib/doc/users/event_handling.rst
Modified: trunk/matplotlib/doc/users/event_handling.rst
===================================================================
--- trunk/matplotlib/doc/users/event_handling.rst 2008-10-28 19:36:07 UTC (rev 6343)
+++ trunk/matplotlib/doc/users/event_handling.rst 2008-10-29 03:36:27 UTC (rev 6344)
@@ -182,8 +182,8 @@
contains, attrd = self.rect.contains(event)
if not contains: return
- print 'event contains', self.rect.xy
- x0, y0 = self.rect.xy
+ x0, y0 = self.rect.get_x(), self.rect.get_y()
+ print 'event contains', x0, y0
self.press = x0, y0, event.xdata, event.ydata
def on_motion(self, event):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|