This project is a graph of the acceleration of the elevator.
import matplotlib.pyplot as plt
import numpy as np
import itertools
import csv
msu = np.loadtxt('msu.csv')[:,-1]
msd = np.loadtxt('msd.csv')[:,-1]
hsu = np.loadtxt('hsu.csv')[:,-1]
hsd = np.loadtxt('hsd.csv')[:,-1]
msu = msu[205:260]
msd = msd[180:240]
hsu = hsu[240:295]
hsd = hsd[230:280]
x1 = np.arange(1, len(msu)+1)
x2 = np.arange(1, len(msd)+1)
x3 = np.arange(1, len(hsu)+1)
x4 = np.arange(1, len(hsd)+1)
plt.plot(x1, msu, color="red")
plt.plot(x2, msd, color="orange")
plt.plot(x3, hsu, color="blue")
plt.plot(x4, hsd, color="green")
plt.title('Comparing Different elevators')
plt.xlabel('Time: hundredths of a second')
plt.ylabel('Accel Z axis values')
plt.legend(["middle school up", "middle school down", "high school up", "high school down"], loc ="upper left")
plt.show()