import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import odeint
import test
y0 = [0 ,2 ,1 ,1]
t = np.linspace(0,10,101)
sul = odeint(test.Atwood, y0, t, args=(M,m,g))
plt.plot(sul[:,0], sul[:,1], 'r', label='theta (x) vs theta dot (y)')
plt.legend(loc='best')
plt.grid()
plt.show()