首页
Java
登录
6mi
u
盘
搜
搜 索
Java
Python第三方库——Matplotlib
Python第三方库——Matplotlib
xiaoxiao
2021-02-28
95
import
matplotlib.pyplot
as
plt line1, = plt.plot([
1
,
2
,
3
], linestyle=
'--'
) line2, = plt.plot([
3
,
2
,
1
], linewidth=
4
)
# Create a legend for the first line.
plt.legend([line1, line2], [
"Line 1"
,
"Line 2"
], loc=
1
) plt.show()
转载请注明原文地址: https://www.6miu.com/read-31562.html
技术
最新回复
(
0
)