8000 Pdf backend · Pull Request #8644 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Pdf backend #8644

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

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bug fix for pdf backend saving
  • Loading branch information
Tuan Dung Tran committed May 18, 2017
commit 1729410b4bf801fe0c379755d94cb15c1faf4c22
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/backend_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,7 @@ def check_gc(self, gc, fillcolor=None):
gc._fillcolor = fillcolor

orig_alphas = getattr(gc, '_effective_alphas', (1.0, 1.0))
if gc.get_rgb() is None:
if gc.get_rgb() is None:
gc.set_foreground([0.0, 0.0, 0.0, 1.0])
Copy link
Member

Choose a reason for hiding this comment

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

Why black? This should probably have 0 alpha?

Copy link
Author
@ghost ghost May 19, 2017

Choose a reason for hiding this comment

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

I'm not entirely sure what the alpha value has to do. I simply revert the unwanted behavior of #5596 i.e. in the function Line2D.draw(renderer), with the above setting, prior to the the change-set, at line 830, edgecolor (returned by Line2D.get_markeredgecolor())would be 'k', and after the call gc.set_foreground(edgecolor) on line 835, gc._rgb takes the value that I set. Will put a test case tomorrow to check to be sure that I did not miss anything.


if gc._forced_alpha:
Expand Down
0