In [37]:
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

%matplotlib inline
%config InlineBackend.figure_format = 'svg' 

#darkgrid, whitegrid, dark, white, and ticks
sns.set_style("darkgrid")
#paper, notebook, talk, and poster
sns.set_context("notebook")
#deep, muted, pastel, bright, dark, and colorblind
current_palette = sns.color_palette("muted")
sns.palplot(current_palette)
sns.set_palette("muted")



In [38]:
data = np.loadtxt("VelocityVerlet.txt").transpose()
x = np.arange(len(data[0]))

In [39]:
plt.title("Position")
plt.plot(x, data[0], label="numeric")
plt.plot(x, data[1], label="analytic")
plt.legend()
plt.show()



In [40]:
plt.title("Linear Velocity")
plt.plot(x, data[2], label="numeric")
plt.plot(x, data[3], label="analytic")
plt.legend()
plt.show()



In [41]:
plt.title("Rotation")
plt.plot(x, data[4], label="numeric")
plt.plot(x, data[5], label="analytic")
plt.legend()
plt.show()



In [42]:
plt.title("Angular Velocity")
plt.plot(x, data[6], label="numeric")
plt.plot(x, data[7], label="analytic")
plt.legend()
plt.show()



In [ ]: