You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for the bug report @missBlueWhite - when you say "becomes invalid", what error message are you seeing? and which version of plotly.js are you using? thanks - @gvwilson
I'm guessing you're creating a heatmap and/or a heatmap-colored contour map. In these modes I believe we convert the colormap to 256 discrete colors, so the way you're generating your colormap all of these except the final color get collapsed into one.
The standard way to use colormaps is to scale the values up so that instead of 0-0.00009 you use the full 0-1 range, then map these to your data using the zmin and zmax attributes (or cmin and cmax in some contexts). Note that the strategy you used here would throw an error if you tried to use it with data outside the 0-1 range.
As shown in the figure, the image contains only two colors: red and purple, while the other colors are not displayed. The z-values provided range from 200 to 3,000,000. When setting the colorScale as described above, only purple and red appear, and the other colors fail to render.
When my normalized color scheme values are extremely small (down to 5 decimal places), this configuration becomes invalid.

The text was updated successfully, but these errors were encountered: