8000 axes.get_xticklabels() doesn't return all tick labels. · Issue #1715 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
axes.get_xticklabels() doesn't return all tick labels. #1715
Closed
@pzakielarz

Description

@pzakielarz

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().

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0