Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use set_xticks(ticks, labels) instead of a separate set_xticklabels() #20636

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

timhoffm
Copy link
Member

PR Summary

Split out of #20631 for easier review.

@timhoffm timhoffm force-pushed the doc-xticks-labels branch from 981dd24 to 50fa443 Compare July 13, 2021 23:32
ax2.set_yticks(pos)
# Set the tick locations and labels
ax2.set_yticks(
pos, labels=[format_score(scores[k].score, k) for k in test_names])
Copy link
Member

Choose a reason for hiding this comment

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

not sure if wrapping format_score in a funcformatter would be helpful here or there's already too much going on in this example

Copy link
Member Author

Choose a reason for hiding this comment

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

There are some more cleanups to be done in that example. I've made a note to have a look at it later. For simplicity, I'll keep this PR as is.

@story645 story645 merged commit ed4f814 into matplotlib:master Jul 14, 2021
@timhoffm timhoffm deleted the doc-xticks-labels branch July 14, 2021 15:37
@QuLogic QuLogic added this to the v3.5.0 milestone Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants