matplotlib.axes.Axes.get_xmajorticklabels#
- Axes.get_xmajorticklabels()[source]#
Return the xaxis' 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).