vtkAxisActor2D AdjustLabels does not move ticks
vtkAxisActor2D
has a mode called AdjustLabels
, enabled by default, in which, from the doc:
the labels and ticks are adjusted for "nice" numerical values to make it easier to read the labels.
The issue is that it does not place the ticks accordingly to the new label values.
Example
This is visible in the vtkBarChartActor
test, that uses this configuration for internal vtkAxisActor2D
for vertical axis. See the baseline:
For readability, I have switched first and last bar. Adding a print in the test, it shows that this first purple bar has a value of 73.4915
, which is inconsistent with the 75.0
tick mark.
The vtkBarChartActor
configure its vtkAxisActor2D
only with:
Number Of Labels: 5
Range: (84.3021, 0.212141)