FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Avoid vstack() when possible. by anntzer · Pull Request #16787 · matplotlib/matplotlib · GitHub

Repository navigation

Avoid vstack() when possible. - #16787

Merged
jklymak merged 1 commit into
matplotlib:masterfrom
anntzer:unvstack
Mar 16, 2020
Merged

jklymak merged 1 commit into
matplotlib:masterfrom
anntzer:unvstack

Conversation

anntzer commented Mar 16, 2020

Copy link
Copy Markdown
Contributor

In transforms.py, array() is faster -- the changes speeds up the
proposed precision-sensitive version of format_data_short (#16776) by ~10%
(essentially because we get to skip the calls to np.atleast_2d in
vstack).

Also replace a vstack() call by a concatenate() in path.py, while we're
at it.

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

In transforms.py, array() is faster -- the changes speeds up the
proposed precision-sensitive version of format_data_short by ~10%
(essentially because we get to skip the calls to np.atleast_2d in
vstack).

Also replace a vstack() call by a concatenate() in path.py, while we're
at it.
anntzer added this to the v3.3.0 milestone Mar 16, 2020
jklymak merged commit 76ddc2d into matplotlib:master Mar 16, 2020
anntzer deleted the unvstack branch March 16, 2020 18:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL