编程语言
首页 > 编程语言> > python matplotlib 系列

python matplotlib 系列

作者:互联网

  1. 折线图
# 正弦函数
x = np.linspace(0,10,100)
y = sin(x)

plt.plot(x,y,label='正弦函数')
plt.legend()  #显示标签

在这里插入图片描述

标签:10,plt,系列,函数,plot,python,正弦,matplotlib
来源: https://blog.csdn.net/leewe7/article/details/114062168