Skip to content

MatplotlibDeprecationWarning: Use xyann instead  #4440

Closed

Description

@dashesy

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.

Activity

  1. tacaswell commented on May 18, 2015

    @tacaswell
    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.

  2. tacaswell commented on May 18, 2015

    @tacaswell
    Member

    Sorry, wrong button

  3. added
    API: changesChanges to the public API, typically requiring deprecation.
    on May 18, 2015
  4. added this to the milestone on May 18, 2015
  5. dashesy commented on May 18, 2015

    @dashesy
    Author

    thanks, yes simply using xyann is working fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    API: changesChanges to the public API, typically requiring deprecation.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions