Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Description
Bug summary
The minor colorbar ticks are messed up for matplotlib3.5+. But, it works well for v3.4.3.
Code for reproduction
importmatplotlibimportnumpyasnpimportmatplotlib.pyplotaspltbounds=np.array([0,0.7,0.75,0.8,0.85,0.9,0.95,0.97,0.98,0.99,1.0])norm=matplotlib.colors.BoundaryNorm(boundaries=bounds,ncolors=256)x=y=np.array([-10,-5,0,5,10])np.random.seed(20)data=np.random.uniform(0,1,(4,4))fig=plt.figure()ax=fig.add_subplot()m=ax.pcolormesh(x,y,data,norm=norm)cb=fig.colorbar(m)cb.minorticks_on()
Actual outcome
Expected outcome
Additional information
No response
Operating system
Ubuntu
Matplotlib Version
3.5.1
Matplotlib Backend
module://matplotlib_inline.backend_inline
Python version
3.9.7
Jupyter version
3.2.4
Installation
conda