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

Use ticklabels([]) instead of ticklabels('')#20632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
timhoffm merged 1 commit intomatplotlib:masterfromtimhoffm:ticklabels-empty-str
Jul 12, 2021

Conversation

timhoffm
Copy link
Member

The string variant is not supported according to the docstring. It's
only working by accident due to the list comprehension in

ticklabels= [t.get_text()ifhasattr(t,'get_text')elset

@timhoffm
Copy link
MemberAuthor

Technically not a doc-only change because I also updated the tests.

@timhoffmtimhoffm added this to thev3.5.0 milestoneJul 11, 2021
@@ -68,8 +68,8 @@ def doall():
plt.gca().set_ylim(0., 1.)
plt.gca().set_title("Matplotlib's math rendering engine",
color=mpl_grey_rvb, fontsize=14, weight='bold')
plt.gca().set_xticklabels("", visible=False)
plt.gca().set_yticklabels("", visible=False)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

What is visible=False doing here?/is it okay that it's dropped?

Copy link
MemberAuthor

@timhoffmtimhoffmJul 12, 2021
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It sets all of the 0 created ticklabels to invisible 🙃 , i.e. does nothing.

story645 reacted with thumbs up emoji
The string variant is not supported according to the docstring. It'sonly working by accident.
@timhoffmtimhoffm merged commit14b34fd intomatplotlib:masterJul 12, 2021
@timhoffm
Copy link
MemberAuthor

Self-merged based on the positive review.

@timhoffmtimhoffm deleted the ticklabels-empty-str branchJuly 12, 2021 10:11
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@story645story645story645 approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.5.0
Development

Successfully merging this pull request may close these issues.

2 participants
@timhoffm@story645

[8]ページ先頭

©2009-2025 Movatter.jp