FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Take text objects into account in legend autopositioning. · Issue #7869 · matplotlib/matplotlib · GitHub

Repository navigation

Take text objects into account in legend autopositioning. #7869

Closed

Description

Legend autopositioning currently does not take text objects into account as can be checked by running

plt.plot([0, 1], label="foo"); plt.text(.05, .95, "a"); plt.legend()

This is because text objects are not included in _auto_legend_data (which only serves that purpose, AFAICT).

Adding them should be easy, but extra points if the autoplacement algorithm penalizes overlapping with text more than overlapping with other artists (given that it's probably indeed worse in general).

Activity

  1. RiazCharania commented on Mar 2, 2020

    Is anyone else currently working on this? If not I'll give it a try.

  2. timhoffm commented on Mar 4, 2020

    Member

    Go for it.

  3. github-actions commented on Apr 6, 2023

    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!

  4. anntzer commented on Apr 6, 2023

    ContributorAuthor

    I still think this would be nice.

  5. github-actions commented on Apr 12, 2024

    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!

  6. added
    keepItems to be ignored by the “Stale” Github Action
    and removed
    status: inactiveMarked by the “Stale” Github Action
    on Apr 12, 2024
  7. saranti commented on Jun 15, 2024

    Contributor

    I think this was fixed by 87d05ae

  8. anntzer commented on Jun 15, 2024

    ContributorAuthor

    Indeed.

  9. added this to the v3.9.0 milestone on Jun 15, 2024
  10. removed
    keepItems to be ignored by the “Stale” Github Action
    on Jun 17, 2024
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL