Skip to content

Change Locator MAXTICKS checking to emitting a log at WARNING level. #13510

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
Sep 5, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Feb 25, 2019

I chose not to create a new helper method and instead change the
behavior of raise_if_exceeds, so that third-party locators also benefit
from the change.

Alternate for #8100 per #8100 (comment); closes #8089.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

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

I think this is better than erroring out, but others may disagree

@anntzer
Copy link
Contributor Author

anntzer commented Aug 26, 2019

@efiring You rejected #8100, but does would this PR be acceptable to you?

I chose not to create a new helper method and instead change the
behavior of raise_if_exceeds, so that third-party locators also benefit
from the change.
@efiring
Copy link
Member

efiring commented Aug 27, 2019

At this point I'm neutral; I won't block it. It's not clear to me that on balance this is better or worse than its predecessor, #8100, or the alternative of doing nothing.

@tacaswell tacaswell merged commit e1f0392 into matplotlib:master Sep 5, 2019
@anntzer anntzer deleted the MAXTICKS branch September 5, 2019 00:42
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.

Using Minute Locator to set x-axis ticks exceeds Locator.MAXTICKS
4 participants