File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -1527,21 +1527,13 @@ def determine_facecolor(patch):
1527
1527
return patch .get_facecolor ()
1528
1528
return [0 , 0 , 0 , 0 ]
1529
1529
1530
- facecolors = [determine_facecolor (p ) for p in patches ]
1531
- edgecolors = [p .get_edgecolor () for p in patches ]
1532
- linewidths = [p .get_linewidth () for p in patches ]
1533
- linestyles = [p .get_linestyle () for p in patches ]
1534
- antialiaseds = [p .get_antialiased () for p in patches ]
1535
-
1536
- Collection .__init__ (
1537
- self ,
1538
- edgecolors = edgecolors ,
1539
- facecolors = facecolors ,
1540
- linewidths = linewidths ,
1541
- linestyles = linestyles ,
1542
- antialiaseds = antialiaseds )
1543
- else :
1544
- Collection .__init__ (self , ** kwargs )
1530
+ kwargs ['facecolors' ] = [determine_facecolor (p ) for p in patches ]
1531
+ kwargs ['edgecolors' ] = [p .get_edgecolor () for p in patches ]
1532
+ kwargs ['linewidths' ] = [p .get_linewidth () for p in patches ]
1533
+ kwargs ['linestyles' ] = [p .get_linestyle () for p in patches ]
1534
+ kwargs ['antialiaseds' ] = [p .get_antialiased () for p in patches ]
1535
+
1536
+ Collection .__init__ (self , ** kwargs )
1545
1537
1546
1538
self .set_paths (patches )
1547
1539
You can’t perform that action at this time.
0 commit comments