-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Minor ticks on log-scale colorbar are not cleared #8358
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
Thanks for the detailed report. I can reproduce this. For the time being, here's how you can somewhat work around this: import numpy
from matplotlib.colors import LogNorm
from matplotlib.pyplot import pcolormesh,colorbar, rcParams
rcParams['xtick.minor.visible']=True
rcParams['ytick.minor.visible']=True
data = numpy.random.random((10,12))*100.0+0.1
img = pcolormesh(data,norm=LogNorm())
cbar = colorbar(img)
cbar.ax.minorticks_off() |
I just upgraded to matplotlib 2.0.1, and I still see the behavior described by PO. |
FWIW, this issue is still present on Matplotlib 2.1 (and master Basically, the issue seems to be that when using a logarithmic-locator like |
This has been fixed by #9903. |
Great! |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug summary
Code for reproduction
Actual outcome

Expected outcome
Version Info
Platform: GNU/Linux 2.6.32-642.11.1.el6.x86_64
Python: 2.7.13 |Anaconda custom (64-bit)
IPython: 5.2.2
Matplotib: 2.0.0
All python components installed via Anaconda.
The text was updated successfully, but these errors were encountered: