matplotlib.axis.Axis.get_majorticklabels#
- Axis.get_majorticklabels()[source]#
Return this Axis' major tick labels, as a list of
Text.Warning
Ticks and their constituent parts, including tick labels, are not persistent. Various operations can create, delete, and modify the tick instances; see Tick objects.
You should generally use
Axis.set_tick_params/Axis.get_tick_paramsto define and query tick styling; see Styling ticks (tick parameters).