Skip to content

Change return type get_{x,y}ticklabels to plain list #16885

@tdpetrou

Description

@tdpetrou

Its fairly often that I use get_xticklabels and other similar methods when exploring and visualizing data with matplotlib. I almost always use list(ax.get_xticklabels()) or ax.get_xticklabels()[0] to view. When teaching, it's also much nicer to be able to see some of the labels without this workaround. One of the main purposes of the getter methods is to actually see a nice underlying representation of the object.

I see from the docstrings that the purpose of silent_list is to silence the repr, but perhaps this can change. get_xticks returns an array. get_lines and get_labels return a silent list.

Is the silent list even necessary?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy