You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using edgecolors='face' with stackplot causes value error when using plt.legend() #20258
I was making a stack plot and wanted the edge colors of the plotted lines to be the same as the fill color instead of the default white, so I set edgecolor='face'. This produces a value error when using plt.legend(). Without the legend function, there are no errors and it plots as expected. I tried changing different parameters of the legend() function, but didn't have any success.
Allowing edgecolor='face' is relatively new (I think 3.4; #18480, @efiring).
It seems that when we try to make the coloured polygons for legend we don't parse the 'face' value for get_edgecolors. Probably a relatively easy fix. I'll bump the milestone since this is a new feature that isn't quite working as expected with legends...
Activity
jklymak commentedon May 18, 2021
I agree this doesn't work. Did it ever work?
jklymak commentedon May 18, 2021
Allowing
edgecolor='face'is relatively new (I think 3.4; #18480, @efiring).It seems that when we try to make the coloured polygons for legend we don't parse the
'face'value forget_edgecolors. Probably a relatively easy fix. I'll bump the milestone since this is a new feature that isn't quite working as expected with legends...Stratton19 commentedon May 18, 2021
To my knowledge, it has never worked.
Simplify legend handler for PolyCollections.
Simplify legend handler for PolyCollections.