-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Draggable annotations: documentation and bugreport #5839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It is very loosely documented: http://matplotlib.org/examples/pylab_examples/annotation_demo3.html Odd that it is not in the API docs... |
True, if you carefully look into that example you can realize it... |
I agree that it should be much better documented and no one can be blamed for missing it as is. I only found it by git grep on the source |
What do you think of the bug? Or is it not a bug? |
That is probably a bug, it would be worth having a look at the draggable selection logic. @blink1073 has been doing some very interesting / cool work with selection areas, it would be interesting to see if you could re-use any of that to make draggable annotations work better? |
I am not entirely certain, but I think annotations became draggable by On Wed, Jan 13, 2016 at 8:55 AM, Thomas A Caswell notifications@github.com
|
Example code:
Try dragging the annotations. Happens randomly, I think, or at least I haven't noticed a pattern. |
I've noticed this behavior too. It does seem mostly random, but I've been able to get repeatable behavior doing this:
Oddly, if you type a command (I run in IPython with interactive on), it seems to break that link. With more annotations, I noticed that many can be linked and typing a command doesn't break all of them. One other thing I noticed is that the second step above causes a new |
I think the bug was fixed in #10776 (somewhat indirectly); the documentation request remains. |
Turns out this is the curse of private base classes again |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
This is unfortunately still undocumented. |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
Hi, I just found out somewhere on the web that annotations can be set to be draggable by just doing:
This is absolutely amazing! But I don't think this is documented anywhere, while it should be (or did I miss it?).
At the same time the behaviour is not perfect: often after dragging one annotation when trying to drag another, the first one would be dragged in the same direction (e.g. I drag the second along x axis, the first one does the same). Sometimes I would get even three annotations moving when I drag one of them.
The text was updated successfully, but these errors were encountered: