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
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...
Bug report
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.
Code for reproduction
Actual outcome
with the following value error:
Expected outcome
The same graph as above, but with a legend.
Matplotlib version
Installed matplotlib using 'pip install matplotlib'.
The text was updated successfully, but these errors were encountered: