Log-colorscale for 2D contour plots


I am looking for a way to plot 2D density contours with a logarithmic color scale.
The reason is I have an empirical 2-D distribution with a main peak concentrating most of the points but secondary peaks whose density is several orders of magnitude below. With the linear color scale I鈥檓 not able to visualize these properly.

From the documentation I read (e.g. Better logarithmic colorscale example 路 Issue #1611 路 plotly/documentation (github.com) the trick is to use a linear colorscale with renamed ticks and pass log-transformed values to the method. I cannot do this because the density is computed under the hood by Histogram2dContour. Is there a way to achieve what I want with Plotly without having to get my hands dirty with density calculations ?

I would bet such issue has been opened up before but could not find a relevant topic.

Many thanks

@Powpowl Unfortunately this is an old unresolved issue: https://github.com/plotly/plotly.js/issues/1844.