8000 Warn on attempts at semi-transparent outputs in ps backend. by anntzer · Pull Request #13605 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Warn on attempts at semi-transparent outputs in ps backend. #13605

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
Mar 6, 2019

Conversation

anntzer
Copy link
Contributor
@anntzer anntzer commented Mar 6, 2019

The postscript format does not support transparency at all; the
postscript backend currently silently ignores the alpha channel
(except if alpha = 0 in which case the artist is not drawn).

Log a warning when this happens so that the user knows what happened.

Small refactor of transparency handling in the backend.

See https://stackoverflow.com/questions/29321707/can-transparency-be-used-with-postscript-eps.
"Closes" #13604 by documenting the limitation.

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

The postscript format does not support transparency at all; the
postscript backend currently silently ignores the alpha channel
(except if alpha = 0 in which case the artist is not drawn).

Log a warning when this happens so that the user knows what happened.

Small refactor of transparency handling in the backend.
Copy link
Member
@jklymak jklymak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me....

@timhoffm timhoffm modified the milestones: v3.2.0, v3.1.0 Mar 6, 2019
@timhoffm timhoffm merged commit 381acf5 into matplotlib:master Mar 6, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Mar 6, 2019
@anntzer anntzer deleted the pstransparency branch March 6, 2019 17:58
dstansby added a commit that referenced this pull request Mar 6, 2019
…605-on-v3.1.x

Backport PR #13605 on branch v3.1.x (Warn on attempts at semi-transparent outputs in ps backend.)
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
0