Hi i have a choropleth map for the world most of the countries in this map have similar values except
China and the U.S.A so most of the countries have the same color
how can i make a Logarithmic color scale to pass this problem
@Emmanuelle: this sort of works, but when you hover over the region, it now shows things like 2 (for 100). This is ok as far as it goes, but most people arenβt very good at converting from the log of n back to n. I wonder if there is a way show the color scale logarithmically, but when we hover (and the colorbar) it shows the actual numbers? This is how it works, for instance, when you change the y-axis to log in a scatter/line plot. It seems much more natural and intuitive.
One thing I did was to just add the data using text: text = df['value']
This works great. The only thing is it would be nice if the colorbar matched it.
I agree your workaround work passing by canvas, but donβt understand why there is no simpler option on Histogram2dContour just change the color scale to take logarithmic scale boundaries. Looks for me more elegant and proper solution.