Re: [Matplotlib-users] move annotation

2010-01-08 Thread Charles Roduit
Simply beautiful ! Thank's a lot, it's exactly what I wanted. Le vendredi 08 janvier 2010 à 13:08 -0500, Jae-Joon Lee a écrit : > this_annotation.xytext = (event.x, event.y) -- This SF.Net email is sponsored by the Veri

Re: [Matplotlib-users] move annotation

2010-01-08 Thread Jae-Joon Lee
I think the current method names of Annotation class (originally from the Text class) is a bit confusing. And this needs to be fixed. Anyhow, instead of calling set_position method, you need to set the "xytext" attribute directly. this_annotation.xytext = (event.x, event.y) Regards, -JJ

[Matplotlib-users] move annotation

2010-01-06 Thread charles . roduit
Dear all, I have a little problem on understanding how to move an annotation on a plot. My idea is to make a plot where some informations follow the cursor when moving on the data, like you can see in plots from piwik ( http://piwik.org/demo ) In the script in attachment, I can follow t