2024-06-16 14:46:17 发布
网友
我想在matplotlib中绘制一组点,例如:
x = [1,4,6,7,8] y = [0.2, 0.4, 0.5, 0.6, 0.6]
在gnuplot中,我可以直接使用plot命令的smooth属性来获得图形上的平滑曲线,而无需对数据进行预处理。
matplotlib中是否有等价物——指定一组点,并告诉它如何平滑它、bezier或spline之类的东西?
如果没有,最简单的方法是什么?
我认为scipy's interpolation and curve-fitting functions是你最接近的。我不知道matplotlib内置了什么。
我认为scipy's interpolation and curve-fitting functions是你最接近的。我不知道matplotlib内置了什么。
相关问题 更多 >
编程相关推荐