function [] = plotting_estimation(t,X_hat,X,Y_est,Y)
t=t/60; % [s] --> [m]
    linewidth=1;
    titleSize=20;
    labelSize=15;
    gcaSize=15;

figure(78)
set(gcf,'Color',[1,1,1])

subplot(3,1,1)
plot(t,X_hat(:,1),'-r','linewidth',linewidth);
hold on;
plot(t,X(:,1),'--b','linewidth',linewidth);
legend('Estimated','Real');
title('Mass of Gas in Annulus (x1) ','FontSize',titleSize,'FontWeight','bold');
xlabel('[minutes]','FontSize',labelSize);
ylabel('[Kg]','FontSize',labelSize);
set(gca,'FontSize',gcaSize);

subplot(3,1,2)
plot(t,X_hat(:,2),'-r','linewidth',linewidth);
hold on;
plot(t,X(:,2),'--b','linewidth',linewidth);
legend('Estimated','Real');
title('Mass of Gas in Tubing (x2) ','FontSize',titleSize,'FontWeight','bold');
xlabel('[minutes]','FontSize',labelSize);
ylabel('[Kg]','FontSize',labelSize);
set(gca,'FontSize',gcaSize);

subplot(3,1,3)
plot(t,X_hat(:,3),'-r','linewidth',linewidth);
hold on;
plot(t,X(:,3),'--b','linewidth',linewidth);
legend('Estimated','Real');
title('Mass of Liquid in Tubing (x3) ','FontSize',titleSize,'FontWeight','bold');
xlabel('[minutes]','FontSize',labelSize);
ylabel('[Kg]','FontSize',labelSize);
set(gca,'FontSize',gcaSize);

figure()
set(gcf,'Color',[1,1,1])
plot(t,Y_est(:,5),'-r','linewidth',linewidth);
hold on;
plot(t,Y(:,5),'--b','linewidth',linewidth);
legend('Estimated','Real');
title(' Bottom Hole Pressure','FontSize',titleSize,'FontWeight','bold');
xlabel('[minutes]','FontSize',labelSize);
ylabel('[bara]','FontSize',labelSize);
set(gca,'FontSize',gcaSize);
ylim([70 170]);
end

