Skip to content

Alternate implementation of lazy ticks. - #10302

Merged
timhoffm merged 1 commit into
matplotlib:masterfrom
anntzer:lazyticks
Jan 24, 2018
Merged

timhoffm merged 1 commit into
matplotlib:masterfrom
anntzer:lazyticks

Conversation

@anntzer

@anntzer anntzer commented Jan 23, 2018 •

Copy link
Copy Markdown
Contributor

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
Comment thread lib/matplotlib/axis.py 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

jklymak commented Jan 24, 2018

Copy link
Copy Markdown
Member

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

@jklymak

jklymak commented Jan 24, 2018

Copy link
Copy Markdown
Member

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

anntzer commented Jan 24, 2018

Copy link
Copy Markdown
Contributor Author

rebased

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

anntzer commented Jan 24, 2018

Copy link
Copy Markdown
Contributor Author

@timhoffm congrats on getting your commit bit, btw

@jklymak

jklymak commented Jan 24, 2018

Copy link
Copy Markdown
Member

@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
Copy Markdown
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.

4 participants