Skip to content

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

Merged
tacaswell merged 1 commit into
matplotlib:masterfrom
anntzer:MAXTICKS
Sep 5, 2019
Merged

tacaswell merged 1 commit into
matplotlib:masterfrom
anntzer:MAXTICKS

Conversation

@anntzer

@anntzer anntzer commented Feb 25, 2019

Copy link
Copy Markdown
Contributor

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

@anntzer anntzer added the API: changes Changes to the public API, typically requiring deprecation. label Feb 25, 2019
@tacaswell tacaswell added this to the v3.2.0 milestone Feb 25, 2019

@jklymak jklymak left a comment

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.

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

@anntzer

anntzer commented Aug 26, 2019

Copy link
Copy Markdown
Contributor Author

@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

efiring commented Aug 27, 2019

Copy link
Copy Markdown
Member

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

Labels

API: changes Changes to the public API, typically requiring deprecation.

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