Skip to content
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

MatplotlibDeprecationWarning: Use xyann instead #4440

Closed
dashesy opened this issue May 17, 2015 · 3 comments
Closed

MatplotlibDeprecationWarning: Use xyann instead #4440

dashesy opened this issue May 17, 2015 · 3 comments
Milestone

Comments

@dashesy
Copy link

dashesy commented May 17, 2015

Version is 1.4.2 and I get deprecation warning so I would like to use the recommended way.
I use a.xytext = (xpos, 0.8) on response to user clicking on certain parts, if the functionality gets deprecated how can we dynamically move annotations? I am not talking about adding new annotations here. Of course one can delete the previous one and recreate a new annotation but that is not exactly same functionality.

@tacaswell
Copy link
Member

xytext is an alias for xyann. Just switch to using a.xyann instead of a.xytext .

Also see http://matplotlib.org/api/api_changes.html#changes-in-1-4-x

This was done in #2351

The aliases were removed from the master branch in 310cab1, but maybe that should be reverted for another release cycle or so.

@tacaswell tacaswell reopened this May 18, 2015
@tacaswell
Copy link
Member

Sorry, wrong button

@tacaswell tacaswell added this to the next point release milestone May 18, 2015
@dashesy
Copy link
Author

dashesy commented May 18, 2015

thanks, yes simply using xyann is working fine

@dashesy dashesy closed this as completed May 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants