def updatePlot(self):
self.ax.clear()
self.ax.plot(self.x_real,self.y_real)
self.ax.scatter(self.x_sample,self.y_sample,s=100)
self.ax.plot(self.x_pred,self.y_pred)
self.ax.fill_between(self.x_pred.ravel(),self.y_pred-2*np.sqrt(self.sigma2_pred),self.y_pred+2*np.sqrt(self.sigma2_pred),color='black',alpha=0.1) #Confidence intervals
ax2.clear()
ax2.fill_between(self.x_acquis.ravel(),np.zeros(len(self.y_acquis)),self.y_acquis,color='green',alpha=0.1)
#%% Index
#Button class for interactive simulation
评论列表
文章目录