diff --git a/python-plots/plot.py b/python-plots/plot.py new file mode 100644 index 0000000..23d15b6 --- /dev/null +++ b/python-plots/plot.py @@ -0,0 +1,71 @@ +import matplotlib +import matplotlib.pyplot as plt +import scipy.integrate as integrate +from scipy.interpolate import interp1d +import csv +import math + +# Config for the plot +font = {'family' : 'Roboto', + 'weight' : 'normal', + 'size' : 20} +matplotlib.rc('font', **font) + +# Constants +PEAK_START_TIME = 150 # !HARDCODED! Time when peak starts (manually derived, [s]) +PEAK_END_TIME = 300 # !HARDCODED! Time when peak ends (manually derived, [s]) + +# Variables +baseline = math.inf + +x_vals = [] +y_vals = [] + +peak_x_vals = [] +peak_y_vals = [] + +# Read data !HARDCODED! Path to CSV data +with open('raw-data-a.csv', newline='') as csvfile: # File must be formatted as: