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
Bug summary
I tried to use a previously-works-fine code to make a plot but failed to reproduce the same one -- after updating matplotlib to 2.2. The hollow circles in plot (defined by markerfacecolor='None') are now in black facecolor. After manually locating the error, I found that the keyword 'alpha' seems conflict to markerfacecolor = 'None' which never happened before. This conflict will only affect facecolor set as 'None'.
Code for reproduction
importmatplotlib.pyplotasplt# This works properlyplt.figure()
plt.plot([1,2,3],[1,2,3],'o',c='g',markeredgecolor='g',markersize=10,markerfacecolor='r',linewidth=2,alpha=1)
plt.show()
# markerfacecolor='none' conflicts with alpha keywordplt.figure()
plt.plot([1,2,3],[1,2,3],'o',c='g',markeredgecolor='g',markersize=10,markerfacecolor='none',linewidth=2,alpha=1)
plt.show()
# markerfacecolor='none' conflicts with alpha keyword, and this happens on different alphasplt.figure()
plt.plot([1,2,3],[1,2,3],'o',c='g',markeredgecolor='g',markersize=10,markerfacecolor='none',linewidth=2,alpha=0.5)
plt.show()
# remove alpha keyword and markerfacecolor='none' works wellplt.figure()
plt.plot([1,2,3],[1,2,3],'o',c='g',markeredgecolor='g',markersize=10,markerfacecolor='none',linewidth=2) # no alpha hereplt.show()
Bug report
Bug summary
I tried to use a previously-works-fine code to make a plot but failed to reproduce the same one -- after updating matplotlib to 2.2. The hollow circles in plot (defined by markerfacecolor='None') are now in black facecolor. After manually locating the error, I found that the keyword 'alpha' seems conflict to markerfacecolor = 'None' which never happened before. This conflict will only affect facecolor set as 'None'.
Code for reproduction
Actual outcome
Matplotlib version
print(matplotlib.get_backend())
): both terminal ipython (Qt5Agg) and jupyter notebook (module://ipykernel.pylab.backend_inline)matplotlib and python installed by conda
channel by default
Thanks a lot!
The text was updated successfully, but these errors were encountered: