记录的散点图,具有回归和标准偏差

问题描述

如何绘制带有回归线和围绕回归线的标准偏差的已记录散点图?即使在对小数位设置了限制之后,该行似乎也根本没有出现。

plt.style.use('ggplot')

x = np.log(ld_country["confirmed"])
y = np.log(ld_country["deaths"])
a = np.log(ld_country.loc['Singapore','confirmed'])
b = np.log(ld_country.loc['Singapore','deaths'])
b,m = polyfit(x,y,1)

plt.plot(x,'.',c='red')
plt.scatter(x,c='red')
plt.scatter(a,b,s=200,marker='*',c='blue')
plt.legend(["Rest of the World","Singapore"])
plt.title("Mortality Rate (Logged)")
plt.xlabel("Log Total Cases")
plt.ylabel("Log Total Deaths")

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)