Ran into a bug this morning with draggable annotations. It would seem that
finalize_offset() forcibly overrides the annotation's textcoords status to
"axes fraction" so it can set the coordinates properly. That's all well
and good, but if you were using some text coordinates system other than
"axes fraction" (say, for example, "data"), this can cause fun side
effects such as annotations that used to pan around with the rest of the
graph suddenly being frozen in place. :(

Attached is a patch to restore the old textcoords mode in
finalize_offset(). All it does  is save the old textcoords mode before
making the change to "axes fraction" and restores it afterwards.

Hope this helps!
-jo


Attachment: DraggableAnnotationDoesntOverrideTextcoords.diff
Description: DraggableAnnotationDoesntOverrideTextcoords.diff

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to