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

Skip to content

MNT: Reduce the use of get_xticklabels() in examples #29602

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 2 commits into from
Mar 8, 2025

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Feb 11, 2025

Working towards #29594. In particular, usage of tick_params() is superior in that it's an axis-wide setting that is applied to new/changed ticks. In contrast, manipulating volatile tick instances may result in inconsistency if the plot is further modified afterwards.

Note this needs the new text rotation mode "xtick" and is thus targeted at 3.11.

@timhoffm timhoffm added this to the v3.11.0 milestone Feb 11, 2025
replace with tick_params() where possible.
@timhoffm timhoffm force-pushed the reduce-get_xticklabels branch from b558d2a to 1746d11 Compare February 27, 2025 15:12
Co-authored-by: Elliott Sales de Andrade <[email protected]>
@dstansby dstansby merged commit 8c4600b into matplotlib:main Mar 8, 2025
37 of 40 checks passed
@timhoffm timhoffm deleted the reduce-get_xticklabels branch March 8, 2025 20:36
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.

4 participants