Matplotlib hexbin log scale colorbar tick标签作为指数

dre*_*cko 4 python plot matplotlib histogram

当使用hexbin具有对数刻度颜色(bins="log")的matplotlib创建二维直方图时,颜色条显示指数而不是值:

带有对数刻度颜色的hexbin图

如何在上图中的x和y轴上显示值和指数刻度线?

dre*_*cko 6

部分答案是使用norm=matplotlib.colors.LogNorm()而不是bins='log'.但这并没有显示较小的刻度线

在此输入图像描述