Moving a patch with the mouse

Is it possible to change say the centre point of a circle patch and do a redraw? (couldn’t find a function in the documentation) or do I have to remove the old patch and plot a new one. I want to bind mouse movement to a function that changes the location of the patch, so that a user can move a patch with the mouse.

Thanks,
Soren

There is a tutorial on this at

http://matplotlib.sourceforge.net/users/event_handling.html

JDH

···

On Fri, Nov 21, 2008 at 3:31 AM, Søren Nielsen <soren.skou.nielsen@...287...> wrote:

Is it possible to change say the centre point of a circle patch and do a
redraw? (couldn't find a function in the documentation) or do I have to
remove the old patch and plot a new one. I want to bind mouse movement to a
function that changes the location of the patch, so that a user can move a
patch with the mouse.