-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot.py
More file actions
29 lines (22 loc) · 660 Bytes
/
plot.py
File metadata and controls
29 lines (22 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from matplotlib import pyplot as plt
import csv
max_list = []
min_list =[]
average_list = []
with open(f'data_files/max.csv', 'r') as file:
reader = csv.reader(file)
for row in reader:
max_list.append(float(row[0]))
with open(f'data_files/min.csv', 'r') as file:
reader = csv.reader(file)
for row in reader:
min_list.append(float(row[0]))
with open(f'data_files/average.csv', 'r') as file:
reader = csv.reader(file)
for row in reader:
average_list.append(float(row[0]))
plt.plot(max_list, 'purple')
plt.plot(average_list, 'red')
plt.plot(min_list, 'blue')
plt.legend(["max", "average", "min"])
plt.show()