just to improve your graph
rund the script with
t = np.linspace(-np.pi/2, np.pi/2, 500) v = -np.sin(t)
and with
and combine both plots