Skip to content

Unclear Documentation for get_xticklabels #16140

Closed

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.

Activity

  1. pgierz commented on Jan 13, 2020

    @pgierz
    ContributorAuthor

    Closed by #16141

  2. added this to the v3.3.0 milestone on Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions