Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
FIX: remove repeated label legend logic#10064
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This of course failed a test in |
@@ -0,0 +1,20 @@ | |||
`Figure.legend` no longer checks for repeated lines to ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Can you put this directly inapi_changes.rst
. The reason we put them in individual files is to avoid interminable rebases when the docs overlap, but thisshould be the only 2.1.2 related API change so that is not a risk ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
No problem. But I’ll be away from machine for a while.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
no worries!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Modulo moving the API docs
... docs moved |
Backport PR#10064 on branch v2.1.x
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
Fixes#10030,#10053,#10056.
Pre#9324, there was logic in
Figure.legend()
to not include duplicate labels in the legend if the linecolors or marker colors were the same. That logic was buggy, and didn't include all possible line properties, but presumably users ofFigure.legend()
worked around this.In#9324, I homogenized the logic between
Figure.legend()
andAxes.legend()
. I still think that re-factoring was a good thing to do, but I missed thatAxes.legend()
didn't have the no-duplicate logic in it. That exposed the bugs noted above.This PR, goes the other way of making
Figure.legend()
the same as pre-9324Axes.legend()
andnot removing the duplicate legend entries.PR Checklist