%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
from scipy.integrate import odeint
from IPython.html.widgets import interact, interactive, fixed

from plotting_function import plotter

"""
Explanation: Two star test
End of explanation
"""


f = open('two_star_test_sol+ic.npz','r')
r = np.load('two_star_test_sol+ic.npz')
sol_test = r['arr_0']
ic_test = r['arr_1']
f.close()

"""
Explanation: Reading data back from npz file
End of explanation
"""


interact(plotter,ic=fixed(ic_test),sol=fixed(sol_test),n=(0,len(np.linspace(0,1,80))-1,1));

"""
Explanation: I use interact on my plotter function to plot the positions of the stars and galaxies in my system at every time value, with a slider to choose which time value to view
End of explanation
"""


