axcolor = f.add_axes([0.9, 0.02, 0.03, 0.79])
im = ax.matshow(C, cmap=cm.gray_r, norm=LogNorm(vmin=0.01, vmax=1))
How can I draw a log-normalized imshow plot with a colorbar representing the raw data in matplotlib