-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
fix: fill stairs should have lw=0 instead of edgecolor="none" #22559
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
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.
This seems reasonable to me. Just to check, the test you've added failed before this change?
@dstansby Yes, the new test fails without this PR |
👍🏻 to the change, I think this will lead to less surprise in multiple places (both the issue reported here and people passing I think this needs an API change note and should not be backported. I can be talked out of that position. |
@tacaswell Feels like a bugfix, the outward-facing interface is not changed, but I can add the change of behaviour w.r.t linewidth if desired |
f054e77
to
376d4d3
Compare
Thank you @andrzejnovak !! |
…ad of edgecolor="none"
…559-on-v3.5.x Backport PR #22559 on branch v3.5.x (fix: fill stairs should have lw=0 instead of edgecolor="none")
Bug fix releases don't get What's new pages. |
PR Summary
@jrueb has reported that calling
set_color()
on existingstairs()
that hadfill
changed the drawn object size. This is because currently forfill=True
stairs
the edge is "hidden" by settingedgecolor="none"
, whichset_color()
overrides. This is not transparent. This PR changes the handling to instead set the edgelinewidth
to 0. Test is included.PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).