Skip to content
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

Alternate implementation of lazy ticks. #10302

Merged
merged 1 commit into from Jan 24, 2018
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jan 23, 2018

Speeds up creation of 10x10 subplots ~4-fold (from 2.7s to 0.7s for me).

I think this is closer than #9727 to being backcompatible, and also simpler if you understand how descriptors work. attn @timhoffm, obviously the credits of the idea go to him.

Milestoned to 2.2 to match #9727.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 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 this to the v2.2 milestone Jan 23, 2018
lib/matplotlib/axis.py Outdated Show resolved Hide resolved
@anntzer anntzer force-pushed the lazyticks branch 2 times, most recently from e2c7538 to ce2ddee Compare January 24, 2018 01:31
@jklymak jklymak added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Jan 24, 2018
@jklymak
Copy link
Member

jklymak commented Jan 24, 2018

I'm not going to merge in case @efiring or @tacaswell want to have a look....

@jklymak
Copy link
Member

jklymak commented Jan 24, 2018

ooops, now there is a conflict. Probably w/ the other tick change?

Speeds up creation of 10x10 subplots ~4-fold (from 2.7s to 0.7s).
@anntzer
Copy link
Contributor Author

anntzer commented Jan 24, 2018

rebased

@timhoffm timhoffm merged commit f3760b2 into matplotlib:master Jan 24, 2018
@anntzer anntzer deleted the lazyticks branch January 24, 2018 21:59
@anntzer
Copy link
Contributor Author

anntzer commented Jan 24, 2018

@timhoffm congrats on getting your commit bit, btw

@jklymak
Copy link
Member

jklymak commented Jan 24, 2018

@timhoffm Yes, welcome!

Though I think out of an abundance of caution we make sure (most of) the tests pass before committing 😉 Maybe OK in this case, as the pre-rebase passed, but...

@timhoffm
Copy link
Member

Thanks. @jklymak also thanks for the advice. I will wait next time.

@QuLogic QuLogic modified the milestones: needs sorting, v2.2.0 Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants