pyvista.plotting.charts.Axis#
- class Axis(label='', range=None, grid: bool = True, *, _wrap=None)[source]#
Pythonic interface for a VTK Axis, used by 2D charts.
- Parameters:
- label
str, default: “” Axis label.
- rangesequence[
float],optional Axis range, denoting the minimum and maximum values displayed on this axis. Setting this to any valid value other than
Nonewill change this axis behavior to'fixed'. Setting it toNonewill change the axis behavior to'auto'.- gridbool, default:
True Flag to toggle grid lines visibility for this axis.
- label
Methods
Toggle the axis' visibility.
Attributes
Set the axis' scaling behavior.
Return or set the axis' grid line visibility.
Pen used to draw the grid lines.
Return or set the axis label.
Return or set the size of the axis label font.
Return or set the axis label's visibility.
Flag denoting whether a log scale is used for this axis.
Return or set the axis margin.
Pen used to draw the axis.
Return or set the axis range.
Return or set the number of ticks drawn on this axis.
Return or set the size of the axis tick label font.
Return or set the tick labels for this axis.
Return or set the offset of the tick labels for this axis.
Return or set the tick label visibility for this axis.
Return or set the tick locations for this axis.
Return or set the size of this axis' ticks.
Return or set the tick visibility for this axis.
Return or set the axis' visibility.