- 积分
- 5469
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2018-10-5
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
#幂函数
def funm(x,a,b):
return a * (x ** b)# Z
popt2, pcov2 = curve_fit(funm, x_R2, y_Z)
y_ZZ = [funm(i, popt2[0],popt2[1]) for i in x_R2]
R_2Z = R2([funm(i, popt2[0],popt2[1]) for i in x_R2], y_Z)# Z随R
f4, ax4 = plt.subplots(1, 1, figsize=(16, 9), dpi=600)
ax4.scatter(x_R2, y_Z,s=0.5, marker='o')
ax4.plot(x_R2,y_ZZ,lw=0.3,color='k',ls='--')为什么拟合出来的不是一条线,该怎么解决?请各位大佬相助,感激不尽
|
|