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

Skip to content

Commit 50508af

Browse files
committed
Fix problem writing out meshes
1 parent 3b2a722 commit 50508af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,8 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
15371537
# stroke (and the amount of alpha for each) is the same for
15381538
# all of them
15391539
can_do_optimization = True
1540+
facecolors = np.asarray(facecolors)
1541+
edgecolors = np.asarray(edgecolors)
15401542

15411543
if not len(facecolors):
15421544
filled = False

0 commit comments

Comments
 (0)