-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Small cleanups/simplifications/fixes to pie(). #17194
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
shad = mpatches.Shadow(w, -0.02, -0.02) | ||
shad.set_zorder(0.9 * w.get_zorder()) | ||
shad.set_label('_nolegend_') | ||
shad.set(zorder=0.9 * w.get_zorder(), label='_nolegend_') |
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.
Any reason these parameters are not passed directly to Shadow
?
I'm also wondering if we need to specify the label, because by default an Artist should not have any 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.
This doesn't work, likely because of bad interaction with #16098.
Also by default Shadow inherits the parent patch (the Wedge)'s props, including the label. Again perhaps this should be changed on Shadow, but heh.
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.
Ok, was here before. I'll close my eyes and move on.
Not sure why tests fail with
|
looks like crossed PRs, as usual. |
- Change the default values of `startangle` and `radius` from "None" to the more explicit 0 and 1. - Apply wedgeprops and textprops separately after the corresponding artist has already been instantiated. This avoids conflicts in case e.g. `textprops` contains an "ha" entry (the dict merge won't notice that this needs to override "horizontalalignment", but applying the user-supplied properties in a second step will "just work". - Misc. small cleanups.
retriggered tests. |
startangle
andradius
from "None" tothe more explicit 0 and 1.
artist has already been instantiated. This avoids conflicts in case
e.g.
textprops
contains an "ha" entry (the dict merge won't noticethat this needs to override "horizontalalignment", but applying the
user-supplied properties in a second step will "just work".
PR Summary
PR Checklist