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

Add parameter inlcude_hidden to get_*ticklabels() #16210

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

Closed
timhoffm wants to merge 1 commit into matplotlib:main from timhoffm:include_hidden

Conversation

Copy link
Member

@timhoffm timhoffm commented Jan 13, 2020

PR Summary

Following the discussion in #16197, get_*ticklabels() returns only the visible ticks.

In the dev call we decided to add a kwarg that optionally enables returning also hidden ticks.

Status

There are multiple nested functions here calling each other. We'd need to apply the changes to all of them.

So fatr I've just implemented the changes to Axis. The others are essentially copy&paste, but I'd like to have this right and not apply docstring changes to all 12 methods multiple times; so please comment.

  • Axis.get_ticklabels
  • Axis.get_majorticklabels
  • Axis.get_minorticklabels
  • _AxesBase.get_xticklabels
  • _AxesBase.get_xmajorticklabels
  • _AxesBase.get_xminorticklabels
  • _AxesBase.get_yticklabels
  • _AxesBase.get_ymajorticklabels
  • _AxesBase.get_yminorticklabels
  • Axes3D.get_ticklabels
  • Axes3D.get_majorticklabels
  • Axes3D.get_minorticklabels

@QuLogic QuLogic modified the milestones: v3.3.0, v3.4.0 May 5, 2020
@QuLogic QuLogic modified the milestones: v3.4.0, v3.5.0 Jan 21, 2021
@QuLogic QuLogic modified the milestones: v3.5.0, v3.6.0 Aug 23, 2021
@timhoffm timhoffm modified the milestones: v3.6.0, unassigned Apr 30, 2022
@story645 story645 modified the milestones: unassigned, needs sorting Oct 6, 2022
Copy link

github-actions bot commented Jul 7, 2023

Since this Pull Request has not been updated in 60 days, it has been marked "inactive." This does not mean that it will be closed, though it may be moved to a "Draft" state. This helps maintainers prioritize their reviewing efforts. You can pick the PR back up anytime - please ping us if you need a review or guidance to move the PR forward! If you do not plan on continuing the work, please let us know so that we can either find someone to take the PR over, or close it.

@github-actions github-actions bot added the status: inactive Marked by the "Stale" Github Action label Jul 7, 2023
Copy link
Member Author

timhoffm commented Jul 10, 2023
edited
Loading

I'm not convinced anymore this is the right way forward. From a user/API perspective an include_hidden parameter feels wrong.

Hidden tick labels should be an implementation detail (or not exist at all). They should not leak out to the user.

That said, I'm not clear on the way forward for the original issue, but I'm convinced that include_hidden would only be a bandaid to cover a deeper design problem.

Closing because I'm not following up on this PR.

@timhoffm timhoffm deleted the include_hidden branch July 19, 2024 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /