-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
FIX: colorbar minorticks when rcParams['x/ytick.minor.visible'] = True #16469
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.
Can this just be one line?
|
gh isn't showing me the line you are trying to mention. Could you please elaborate? Thanks! |
Just call self.minorticks_on(rcpram[minirticks]) ? EDIT: actually I guess that doesn't work because long_axis isn't defined yet. |
I guess I'm not sure we should be turning the minorticks on at all based on the 'ytick.minor.visible' value? I am rather shocked that we have no rcParams for colorbars, but maybe we need one here? |
you are right about the one liner. pushed a change.. and yes I agree that we need dedicated rcParams for colorbar. I am just trying to fix the existing incorrect behavior. |
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.
LGTM. Thanks a lot @pharshalp
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.
thanks for the pr.
anyone can merge postci.
Added a test Replaced the unnecessary logic with a one liner as suggested Better docs for test Removed random data from test flake8 fix
|
PR Summary
closes #16468
PR Checklist