8000 Updated test images for PDF/SVG alpha handling · matplotlib/matplotlib@7311274 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7311274

Browse files
committed
Updated test images for PDF/SVG alpha handling
1 parent e767a41 commit 7311274

File tree

5 files changed

+164
-161
lines changed

5 files changed

+164
-161
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2321,12 +2321,14 @@ def clip_cmd(self, cliprect, clippath):
23212321
(('_cliprect', '_clippath'), clip_cmd),
23222322
(('_alpha', '_forced_alpha', '_effective_alphas'), alpha_cmd),
23232323
(('_capstyle',), capstyle_cmd),
2324+
# If you change the next line also fix the check in delta
23242325
(('_fillcolor',), fillcolor_cmd),
23252326
(('_joinstyle',), joinstyle_cmd),
23262327
(('_linewidth',), linewidth_cmd),
23272328
(('_dashes',), dash_cmd),
23282329
(('_rgb',), rgb_cmd),
23292330
# must come after fillcolor and rgb
2331+
# If you change the next line also fix the check in delta
23302332
(('_hatch', '_hatch_color', '_forced_alpha'), hatch_cmd),
23312333
)
23322334

@@ -2356,7 +2358,8 @@ def delta(self, other):
23562358
break
23572359

23582360
# Need to update hatching if we also updated fillcolor
2359-
if params == ('_hatch', '_hatch_color') and fill_performed:
2361+
if (params == ('_hatch', '_hatch_color', '_forced_alpha')
2362+
and fill_performed):
23602363
different = True
23612364

23622365
if different:

0 commit comments

Comments
 (0)
0