-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
not support extremely small number #7426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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 |
@TBusan right, in principle this is a bug that at some point we should fix, but I suspect doing that would be a substantial project that might also impact performance, so it's much better to make use of the existing patterns if you can use them to do what you need. The colorscale screenshot posted by @missBlueWhite is a linear mapping of 20 colors over the first ten-thousandth of the range, then everything above that is purple. That's exactly what |
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: