Hello
I have a contour plot with specified number of levels (isolines):
lev = array([2,3,5,7,10,13,17,21,26,32,42,62,80,100,120,140,180])
to have a log "z" axis I put:
from matplotlib import colors
contourf(x1, y1, z1, lev, norm=colors.LogNorm(lev[0],lev[len(lev)-1]))
now, to get colorbar in log scale:
from matplotlib.ticker import LogLocator, LogFormatter
l_f = LogFormatter(10, labelOnlyBase=False)
cbar = colorbar(format = l_f)
But the colorbar doesn't have all tick's labels specified in "lev"
variable. Ticks are placed correctly on the cbar, but only every
second tick has a text label (yes 2, 5, 10 ... etc). What should I do
to have ALL levels on colorbar labeled?