Closed
Description
There is no way to select both major and minor tick labels at the same time. For example
(if ax
is a matplolib.axes),
for label in ax.get_xticklabels():
label.set_rotation(45)
only adjusts the major ticks, and
for label in ax.get_xticklabels(minor=True):
label.set_rotation(45)
only adjusts the minor ticks.
It would be convenient if axis.get_ticklabels()
took an argument of the form which='both'
, instead of minor=True\False
, which would allow the corresponding functionality to be implemented in ax.get_xticklabels()
.