8000 Minor ticks on log-scale colorbar are not cleared · Issue #8358 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Minor ticks on log-scale colorbar are not cleared #8358
Closed
@lamorton

Description

@lamorton

Bug report

Bug summary

  • Using pcolormesh with logarithmic color scale and minor ticks enabled results in a cluttered-looking set of minor ticks, apparently because the linear ticks are not removed, just overplotted with the log scale ones.

Code for reproduction

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 
pcolormesh(data,norm=LogNorm())
colorbar()

Actual outcome
lognormmess

Expected outcome

  • Expect that the colobar minor ticks would appear logarithmically.

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0