-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
added axis ticks and labels don't replace default labels #9253
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
This is an intentional change in 2.0 (http://matplotlib.org/users/dflt_style_changes.html#logformatter-labeling-of-minor-ticks) that the default log ticking now labels minor ticks. |
Thank you for the clarification. It may not be a bug, but it significantly increases the complexity of doing simple things. The students I instruct to use simple pyplot functions for their lab assignments did not previously need to know about axes and their methods. Now they apparently will, if I'm understanding the available workarounds. Could there not be a function plt.yminorticks('none'), option plt.semilogy(yminorticks='off'), or similar? Edit: Even I, a relatively experienced Pyplot user, have not yet been able to figure out a workaround, complex or otherwise. |
I think it would make sense for Reopening to discuss whether this would be a worthwhile approach. |
Someone on stackexchange just pointed out that there's a plt.minorticks_off() function that I hadn't previously found. I'm surprised this wasn't mentioned in any of the related bug reports that I viewed. |
This is still an issue in Python 3.6.6 / Matplotlib 2.2.3. Thank you for the pointer to plt.minorticks_off() - I ran into the same problem, and I second the sentiment that user-specified x/yticks should always take precedence over default labels. |
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! |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug summary
Code that used to work flawlessly for replacing tick locations and labels on a log axis now seems to merely add to the default labels, so both now appear in the plot.
Code for reproduction
Actual outcome
Expected outcome
There should be no overwriting of custom labels with the default scientific notation labels. It did work correctly about a year ago, but I cannot say what version of Matplotlib was being used at that time.
Matplotlib version
conda install matplotlib
The text was updated successfully, but these errors were encountered: