In cases where the size of swatchCount exceeds that of gradientRange, the ValueSpan of a colour theme can then become 0. When computing linear ranges, the progress calculation will then fail with a Not a Number error. This only seemed to crop up when using Viridis with a particularly wide set of possible elevations.
In cases where the size of
swatchCount
exceeds that ofgradientRange
, theValueSpan
of a colour theme can then become 0. When computing linear ranges, theprogress
calculation will then fail with a Not a Number error. This only seemed to crop up when using Viridis with a particularly wide set of possible elevations.