Skip to content

Improve vtkAxisActor2D

  • Improve tick positions
  • A new SnapLabelsToGrid creates rounded labels (as AdjustLabels mode) but also respects NumberOfLabels target.

Example

In the following example the specified Range is [0.05, 1.05] and AdjustLabels is On.

previous new
start point is labeled 0.00 but is at pos 0.05 do not display 0.00 as it is outside of range
end point is labeled 1.00 but is at pos 1.05 axis goes after last label

This should fix #19275 (closed)

Edited by Nicolas Vuaille

Merge request reports