Change plots to interactive plots

This commit is contained in:
Roger Labbe
2016-02-27 20:52:36 -08:00
parent f3358f44d6
commit ef67326af6
8 changed files with 64871 additions and 577 deletions

View File

@@ -339,8 +339,11 @@ def show_residual_chart(show_eq=True, show_H=False):
plt.xlabel('time')
ax.yaxis.set_label_position("right")
plt.ylabel('state')
plt.xlim(-0.5, 1.5)
plt.savefig('../figs/residual_chart.png', pad_inches=0.1)
plt.xlim(-0.1, 1.5)
if show_H:
plt.savefig('../figs/residual_chart_with_h.png', pad_inches=0.1)
else:
plt.savefig('../figs/residual_chart.png', pad_inches=0.1)
@@ -589,6 +592,7 @@ if __name__ == "__main__":
plot_estimate_chart_3()
create_predict_update_chart()
show_residual_chart()
show_residual_chart(True, True)
plt.close('all')
'''p = [0.2245871, 0.06288015, 0.06109133, 0.0581008, 0.09334062, 0.2245871,