-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
set_rgrids() in a polar plot cannot set ticklabel size #17463
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
Comments
I think this is because the radial ticks are re-created on draw to take into account the changed theta limits. A workaround is to call |
Yes, |
In case @AgilentGCMS has not found a workaround, here is one (although I could not find a way to offset the labels from the edge):
|
@CatChenal I used the workaround of @QuLogic |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
In general, the problem with Various operations can create/delete/modify these so that there is no guarantee these properties are maintained. The better approach is to use #26436 documents this. Further work options a) close because it's documented. b) deprecate kwargs (argument: Setting individual tick properties should be transparent to the user and they should do it explicitly themselves). This would be intentionally be more cumbersome and drive people towards c) translate I suggest to stick with a). |
Bug report
In a polar plot, I want to set the sizes of the r and theta ticklabels. While setting the theta ticklabel size works with the method
set_thetagrids
, setting the r ticklabel size withset_rgrids
does not work.As an aside, I find it confusing that some functions for setting theta parameters require arguments in radians (e.g.,
set_thetalim
), while others require arguments in degrees (e.g.,set_thetagrids
).Code snippet
Actual outcome
See figure
Expected outcome
I expect to be able to set the font properties of r ticklabels. Other settings, such as trying to set the font weight, does not work either.
Matplotlib version
The text was updated successfully, but these errors were encountered: