stormpython/heatmap

Tiles do not differentiate between 0 counts and low counts.

Opened this issue · 3 comments

ktdu commented

It seems that the heatmap will show the same color for tiles with 0 counts and tiles with the lowest range of counts. It would be nice to show tiles with 0 counts with no color (white).

A quick glance at the demo gif in the repository README shows that this differentiation used to exist, but is no longer the case.

Edit: This seems to only be an issue with filtered fields.

@ktdu the demo does not differentiate between 0 and low counts. Empty (white) blocks are present when there are no data. If the data value is 0, it gets grouped in with the lowest bucket. Have you tried changing the scales or increasing the color range?

ktdu commented

Changing the color range/scale to max still did not differentiate 0 from low counts. However, I did take the liberty and went into your code to turn off block/cell generation for data values of 0 as a workaround. Just as a suggestion, having 0 separated from the lowest buckets might be a good feature in the future.

@ktdu I wonder if using scripted fields in this case is a good work around for the time being? Since you've already made changes to the code, feel free to submit a pull request for the enhancement. Given my time constraints these days, it would be the fastest route to a resolution.