File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1527,21 +1527,13 @@ def determine_facecolor(patch):
15271527 return patch .get_facecolor ()
15281528 return [0 , 0 , 0 , 0 ]
15291529
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 )
15451537
15461538 self .set_paths (patches )
15471539
You can’t perform that action at this time.
0 commit comments