import matplotlib.pyplot as plt # import library to plot curves
V=[1.15,1.54,1.85,2.18,2.43,2.65,2.78,2.89,2.95,2.95,2.93,2.85,2.78,2.69,2.55,2.42,2.28,2.19,2.12,2.08,2.05,2.03,2.03,2.02,2.01,2.00,2.00] # list of speed values

N=len(V) # number of points
h=0.04 # step size

T=[] # generates a list of times
for i in range(N):
    T.append(i*h)
    
fig, axs = plt.subplots(3) # prepares to make multiple plots
    
axs[0].plot(T,V,'r+') # plot of v(t)
axs[0].set_xlabel("t(s)")
axs[0].set_ylabel("v(m/s)")

Z=[0] # creates a list of positions and fills it
for i in range(N-1):
    Z.append(..............)
    
axs[1].plot(T,Z,'r+') # plot of z(t)
axs[1].set_xlabel("t(s)")
axs[1].set_ylabel("z(m)")

A=[] # creates a list of accelerations and fills it
for i in range(N-1):
    A.append(..............)
del(T[-1])

axs[2].plot(T,A,'r+') # plot of a(t)
axs[2].set_xlabel("t(s)")
axs[2].set_ylabel("a(m/s^2)")
plt.show()



