Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TexManager fixes. #17395

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
May 14, 2020
Merged

TexManager fixes. #17395

merged 1 commit into from
May 14, 2020

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented May 13, 2020

  • Fix calling get_grey with fontsize=None or dpi=None (this would
    previously just pass the string "None" down the stack and crash).
  • Fix get_rgba stacking colors and get rid of its cache (the slow part
    is accessing the filesystem in get_grey, just stacking some colors
    should be cheap and not caching the result is also nicer memory-wise).

Closes #17393.

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

- Fix calling get_grey with fontsize=None or dpi=None (this would
  previously just pass the string "None" down the stack and crash).
- Fix get_rgba stacking colors and get rid of its cache (the slow part
  is accessing the filesystem in get_grey, just stacking some colors
  should be cheap and not caching the result is also nicer memory-wise).
@anntzer anntzer added this to the v3.3.0 milestone May 13, 2020
@tacaswell
Copy link
Member

Should probably add the snippet from #17393 as a test as we apparently don't use this code path otherwise in the testes.

@anntzer
Copy link
Contributor Author

anntzer commented May 13, 2020

Honestly I'd rather just deprecate get_rgba and add a more generic functionality for combining an alpha map and a given color (as it doesn't really make sense to have that just here), so I don't really want to spend more time on this than strictly needed. But feel free to push one...

@QuLogic QuLogic merged commit 8bddf0a into matplotlib:master May 14, 2020
@anntzer anntzer deleted the texman branch May 14, 2020 08:00
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.

TexManager.get_rgba fails
3 participants