-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
COMPAT: use mpl area legend if available #13680
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
Current coverage is 85.30% (diff: 72.72%)@@ master #13680 diff @@
==========================================
Files 139 139
Lines 50143 50146 +3
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 42776 42776
- Misses 7367 7370 +3
Partials 0 0
|
Looks good to me. @TomAugspurger Can you have a look? |
# need to remove label, because subplots uses mpl legend as it is | ||
line_kwds = kwds.copy() | ||
if cls.mpl_ge_1_5_0(): | ||
line_kwds.pop('label') |
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.
Is this worth warning over? Seems similar to the subplots=True, axes=...
case, which we do warn about.
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.
Oh, I see below you were moving that from below. Never mind then.
Just the one question, but not really relevant to this PR. +1 Oh, might want a whatsnew entry. |
ffbaabb
to
968aecc
Compare
@TomAugspurger status of this? |
git diff upstream/master | flake8 --diff
Do not use area legend workaround if mpl >= 1.5.0 is available. Legends are now displayed properly if mpl >= 1.5.0.
#9161:
#13544: