相关疑难解决方法(0)

使用matplotlib设置图例符号不透明度?

我正在研究一个半透明的'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 )
Run Code Online (Sandbox Code Playgroud)

python matplotlib

38
推荐指数
4
解决办法
1万
查看次数

标签 统计

matplotlib ×1

python ×1