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

Skip to content

Commit 878b681

Browse files
committed
Merge pull request #3 from mdboom/pdf-xobject-linewidth
Pdf xobject linewidth
2 parents 1ea88b0 + 3a015fa commit 878b681

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,9 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
16171617
if not len(edgecolors):
16181618
stroked = False
16191619
else:
1620-
if np.all(edgecolors[:, 3] == edgecolors[0, 3]):
1620+
if np.all(np.asarray(linewidths) == 0.0):
1621+
stroked = False
1622+
elif np.all(edgecolors[:, 3] == edgecolors[0, 3]):
16211623
stroked = edgecolors[0, 3] != 0.0
16221624
else:
16231625
can_do_optimization = False

0 commit comments

Comments
 (0)