pyvista.plotting.charts.Axis.tick_size#

property Axis.tick_size[source]#

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 as pv
>>> chart = pv.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-2_00_00.png