最佳答案
我正在用半透明的“ x”标记(20% alpha)绘制一幅图。如何使标记在图例中显示为100% 不透明?
import matplotlib.pyplot as plt
plt.plot_date( x = xaxis, y = yaxis, marker = 'x', color=[1, 0, 0, .2], label='Data Series' )
plt.legend(loc=3, mode="expand", numpoints=1, scatterpoints=1 )