Skip to content

Use tick_params more often over tick iteration - #23377

Merged
timhoffm merged 1 commit into
matplotlib:mainfrom
QuLogic:more-tick_params
Jul 1, 2022
Merged

timhoffm merged 1 commit into
matplotlib:mainfrom
QuLogic:more-tick_params

Conversation

@QuLogic

@QuLogic QuLogic commented Jun 30, 2022

Copy link
Copy Markdown
Member

PR Summary

Related to, but does not completely fix, #23372.

PR Checklist

Tests and Styling

  • [n/a] Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • [n/a] New features are documented, with examples if plot related.
  • [n/a] New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • [n/a] API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

@QuLogic QuLogic added this to the v3.6.0 milestone Jun 30, 2022
Comment thread examples/axes_grid1/demo_axes_rgb.py Outdated

for ax in fig.axes:
ax.tick_params(axis='both', direction='in')
ax.tick_params(axis='both', direction='in', color='w')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
ax.tick_params(axis='both', direction='in', color='w')
ax.tick_params(direction='in', color='w')

Both is the default.

@timhoffm

timhoffm commented Jul 1, 2022

Copy link
Copy Markdown
Member

Are these the easy cases or only randomly some? Because if the first we should comment on #23372 and maybe even remove the good first issue.

@QuLogic

QuLogic commented Jul 1, 2022

Copy link
Copy Markdown
Member Author

I believe it's everything that doesn't need alignment.

Related to, but does not completely fix, matplotlib#23372.
@QuLogic
QuLogic force-pushed the more-tick_params branch from 6bdb0b1 to e421dd5 Compare July 1, 2022 06:43
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.

2 participants