I noticed on the event handling doc page:
that the draggable rectangle example doesn't work in version 0.98.3.
The rectangle class no longer seems to have the xy property. If you
replace the current on_press() method in the example with the code
below it seem to work.
def on_press(self, event):
'on button press we will see if the mouse is over us and store
if event.inaxes != self.rect.axes: return
contains, attrd = self.rect.contains(event)
if not contains: return
xy = self.rect.get_x(),self.rect.get_y()
print 'event contains', xy
x0, y0 = xy
self.press = x0, y0, event.xdata, event.ydata