diff --git a/lib/matplotlib/backends/backend_pdf.py b/lib/matplotlib/backends/backend_pdf.py index e14aadcb48bd..ccb84c8d4ce9 100644 --- a/lib/matplotlib/backends/backend_pdf.py +++ b/lib/matplotlib/backends/backend_pdf.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +# -*- coding: utf-8 -*- """ A PDF matplotlib backend @@ -1625,6 +1625,8 @@ 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: + gc.set_foreground([0.0, 0.0, 0.0, 1.0]) if gc._forced_alpha: gc._effective_alphas = (gc._alpha, gc._alpha)
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: