-
-
Notifications
You must be signed in to change notification settings - Fork 7.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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4f421c9
to
d5e325d
Compare
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 in api_changes.rst
. The reason we put them in individual files is to avoid interminable rebases when the docs overlap, but this should 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
39cee89
to
6ae1c88
Compare
6ae1c88
to
3ea5f83
Compare
... docs moved |
Backport PR #10064 on branch v2.1.x
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()
and not removing the duplicate legend entries.PR Checklist