-
Notifications
You must be signed in to change notification settings - Fork 18
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
[HeatmapMesh] NaN, +inf, -inf are all displayed the same way #1372
Comments
FYI @t20100 |
According to @t20100 there is also a typo with the nanColor
Which should be clamped Or i guess |
Sounds reasonable to me. I don't have really strong opinions on how these should be displayed. |
I'm reluctant to change the current behaviour in the viewer, as we haven't had any feedback suggesting to change it. On the contrary, in #1181, the idea is to treat a specific, high value (read from HDF5) as "fill value" by ignoring it from the domain computation and hiding it completely from the visualization (i.e. transparent on heatmap vis; removed on line vis). In a way, we're treating Of course, we could add a control in the toolbar to change the colors used for fill values on the heatmap but someone would have to make a case for this feature. For now, I suggest we make the requested behaviour configurable in |
If you want extra options, please take a look at matplotlib API before creating new stuffs https://matplotlib.org/stable/api/_as_gen/matplotlib.colors.Colormap.html |
It was just a suggestion, that's why we're discussing it in an issue. 😊 I'm not familiar with matplotlib's API, so always happy to be pointed to the relevant information, thanks! |
I'd also expect as default behaviour to have -/+Inf displayed with colors of the extrema of the colormap as any other under/over value (those are value numbers), and NaN (as well as value not supported by the used scale) not being displayed, and then add needed props to configure this for what is needed. For what I'm using, I don't see an immediate need to configure this. The
|
This means that the current treatment cannot be reproduced since +/-Inf color are currenlty different from the regular over/under values:
I am not against it. Just stating things clearly. |
Describe the bug
+inf, -inf, nan are displayed the same way from
HeatmapMesh
.Tested with
float16
, but it's probably the same withfloat32
.Expected behaviour
We would expect as default behaviour:
The text was updated successfully, but these errors were encountered: