Links zu Dokumentationen/Tutorials für IPython/Python/numpy/matplotlib/git sowie die Sourcodes findet ihr im GitHub Repo.
In [1]:
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
In [2]:
hamilton = np.loadtxt('data/ex26_euler.out')
time = hamilton[:,0]
H = hamilton[:,1]
p = hamilton[:,2]
q = hamilton[:,3]
In [3]:
plt.plot(time, H)
plt.show()
In [4]:
plt.plot(time, H)
plt.plot(time, q)
plt.plot(time, p)
plt.show()
In [5]:
hamilton = np.loadtxt('data/ex26_expl_sv.out')
time = hamilton[:,0]
H = hamilton[:,1]
p = hamilton[:,2]
q = hamilton[:,3]
In [6]:
plt.plot(time, H)
plt.show()
In [7]:
plt.plot(time, H)
plt.plot(time, q)
plt.plot(time, p)
plt.show()
In [ ]: