Plotly Map: Inverse Colorscale Tick Values
In Plotly maps (Python), how can I inverse the tick labels on the colorscale so that the smallest value is at the top and the largest at the bottom? For example, -100 at the top an
Solution 1:
You can do it with the ticktext input
In your colorbar definition, include tickmode="array"
along with ticktext=
and tickvals=
Something like this:
colorbar=dict(tickmode="array",ticktext=[100,-100],tickvals=[-100,100])
Post a Comment for "Plotly Map: Inverse Colorscale Tick Values"