python matplotlib.pyplot() plt() 如何限制坐标的上下限?plt.xlim() plt.ylim()

在这里插入图片描述
不设置上下限,曲线都跑出关注区域了。。。
设置前(5次拟合)
在这里插入图片描述
设置后(5次拟合):
在这里插入图片描述

参考文章:matplotlib 设定坐标的上下限:matplotlib.pyplot.xlim

发布了857 篇原创文章 · 获赞 49 · 访问量 15万+

猜你喜欢

转载自blog.csdn.net/Dontla/article/details/104481246
plt
今日推荐