-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Fix stem(use_line_collection) #13745
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
|
Marking as release critical, because |
|
Do we know how this broke? |
|
I think this was an oversight in the original implementation and never worked with |
|
I suppose it could use a test in that case 😉 |
8bf4e02 to
9381302
Compare
|
Test added. |
lib/matplotlib/axes/_axes.py
Outdated
| stemlines = [] | ||
| stemlines = [((xi, bottom), (xi, yi)) for xi, yi in zip(x, y)] | ||
| if linestyle is None: | ||
| linestyle = 'solid' |
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.
Should this maybe rather evaluate the lines.linestyle rc parameter?
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.
Yes. Thanks!
9381302 to
013dfc1
Compare
…745-on-v3.1.x Backport PR #13745 on branch v3.1.x (Fix stem(use_line_collection))
PR Summary
fails because
linefmtis resolved tolinestyle = None, which is not a valid parameter value forLineCollection.The fix is consistent with the behavior of
use_line_collection=False.