tick_size#

property Axis.tick_size#

Return or set the size of this axis’ ticks.

Examples

Create a 2D chart with an x-axis with an increased tick size and adjusted offset for the tick labels.

>>> import pyvista
>>> chart = pyvista.Chart2D()
>>> _ = chart.line([0, 1, 2], [2, 1, 3])
>>> chart.x_axis.tick_size += 10
>>> chart.x_axis.tick_labels_offset += 12
>>> chart.show()
../../../../_images/pyvista-plotting-charts-Axis-tick_size-1_00_00.png