Skip to content

Fix label rounding for small tick value.

Sebastien Binet requested to merge fixsmallticks into master

Created by: btracey

There are floating point errors in computing the tick value, which are eliminated by rounding to a float32. If the value is close to zero, this doesn't remove the rounding errors. If abs(value) < 1, add 1, convert to float32, and then subtract one. This fixes cases where there are a lot of digits for the axis label at 0

Merge request reports

Loading