Skip to content

Unclear Documentation for get_xticklabels #16140

Closed
@pgierz

Description

@pgierz

This is not so much a bug report as a suggestion for improved documentation. A colleague and I were working on some plots and stumbled across the initially confusing behaviour that ax.get_xticklabels contains a list of ticks without any text yet, and that a call to plt.draw() is required before the tick list is populated and can then be modified. This problem has apparently also confused some other people: https://stackoverflow.com/questions/32700935/get-xticklabels-contains-empty-text-instances

I've sent a pull request with additional explanation in the documentation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions