Matplotlib hexbin log scale colorbar tick tags as exhibitors

When creating a two-dimensional histogram with matplotlibs hexbinwith the colors of the log scale ( bins="log"), the color panel shows the exponents instead of the values:

hexbin plot with log scale colors

How can I show him the values ​​and labels of the exponent labels, as in the x and y axes in the graph above?

+4
source share
1 answer

A partial answer is to use norm=matplotlib.colors.LogNorm()instead bins='log'. It does not show smaller marks, but

enter image description here

+5
source

Source: https://habr.com/ru/post/1598483/


All Articles