1、绘制点
plt.scatter函数参数意义,s参数表示点的面积,marker为点的形式
参考:https://blog.csdn.net/m0_37393514/article/details/81298503
x和y为数组
结果:
2、绘制直线
核心函数:
plt.plot(x, yy, c=‘orange’)
plt.title(‘liner regression’,fontsize=‘xx-large’,fontweight=‘heavy’)
结果:
相关文章:
1、绘制点
plt.scatter函数参数意义,s参数表示点的面积,marker为点的形式
参考:https://blog.csdn.net/m0_37393514/article/details/81298503
x和y为数组
结果:
2、绘制直线
核心函数:
plt.plot(x, yy, c=‘orange’)
plt.title(‘liner regression’,fontsize=‘xx-large’,fontweight=‘heavy’)
结果:
相关文章: