def plot_fit(self,**kwargs):
		""" Plots the fit of the model

		Returns
		----------
		None (plots data and the fit)
		"""

		figsize = kwargs.get('figsize',(10,7))

		if len(self.params) == 0:
			raise Exception("No parameters estimated!")
		else:
			date_index = self.index
			mu, _, _ = self.model(self.params)
			mu = mu[0][0:1-len(mu[0])]
			plt.figure(figsize=figsize)	
			
			plt.subplot(3, 1, 1)
			plt.title(self.data_name + " Raw and Filtered")	

			plt.plot(date_index,self.data,label='Data')
			plt.plot(date_index,mu,label='Filter',c='black')
			plt.legend(loc=2)
			
			plt.subplot(3, 1, 2)
			plt.title(self.data_name + " Local Level")	
			plt.plot(date_index,mu)
			
			plt.subplot(3, 1, 3)
			plt.title("Measurement Noise")	
			plt.plot(date_index,self.data-mu)
			plt.show()
dataset/ETHPy150Open RJT1990/pyflux/pyflux/ssm/llm.py/LLEV.plot_fit/swapped operands of `-`