Closed angerossi closed 1 year ago
OK, I'm testing this. Two first observations:
it looks like proper logarithmic colorscale labels can be generated see https://plotly.com/python/colorscales/#customizing-tick-text-on-logarithmic-color-bars
This is possible, but mainly works if the data spans multiple orders of magnitude. If all values are between 1 and 3, creating log-spaced ticks is a bit harder.
it looks like proper logarithmic colorscale labels can be generated see https://plotly.com/python/colorscales/#customizing-tick-text-on-logarithmic-color-bars
I did have a look at this. While it is possible, the ticktest
argument requires that the tickmode
is set to array
, such that the tickvals
are set in the layout. Also, the alternative implementation with the labelalias
argument allows for any tickmode
, but the tickvals
are still required to set the aliases. Since we set the min and max for the colorbar, Plotly automatically sets the tickvalues and extracting them is non-trivial.