Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Milestone
@tdpetrou

Description

@tdpetrou

Its fairly often that I useget_xticklabels and other similar methods when exploring and visualizing data with matplotlib. I almost always uselist(ax.get_xticklabels()) orax.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 ofsilent_list is to silence the repr, but perhaps this can change.get_xticks returns an array.get_lines andget_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


      [8]ページ先頭

      ©2009-2025 Movatter.jp