Add D1
This commit is contained in:
BIN
D1/Graphs/DataDesign1.zip
Normal file
BIN
D1/Graphs/DataDesign1.zip
Normal file
Binary file not shown.
8193
D1/Graphs/MaxMeasure.csv
Normal file
8193
D1/Graphs/MaxMeasure.csv
Normal file
File diff suppressed because it is too large
Load Diff
BIN
D1/Graphs/MaxMeasure.png
Normal file
BIN
D1/Graphs/MaxMeasure.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
BIN
D1/Graphs/MaxPic.png
Normal file
BIN
D1/Graphs/MaxPic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
8193
D1/Graphs/MinMeasure.csv
Normal file
8193
D1/Graphs/MinMeasure.csv
Normal file
File diff suppressed because it is too large
Load Diff
BIN
D1/Graphs/MinMeasure.png
Normal file
BIN
D1/Graphs/MinMeasure.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 114 KiB |
BIN
D1/Graphs/MinPic.png
Normal file
BIN
D1/Graphs/MinPic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
37
D1/Graphs/graphs.py
Normal file
37
D1/Graphs/graphs.py
Normal file
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Created on Sun Jan 13 16:30:58 2019
|
||||
|
||||
@author: oyvind
|
||||
"""
|
||||
|
||||
import csv
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
header = []
|
||||
data = []
|
||||
|
||||
filename = "MaxMeasure"
|
||||
|
||||
|
||||
with open(filename + ".csv") as csvfile:
|
||||
csvreader = csv.reader(csvfile)
|
||||
|
||||
header = next(csvreader)
|
||||
|
||||
for dataplot in csvreader:
|
||||
values = [float(value) for value in dataplot]
|
||||
|
||||
data.append(values)
|
||||
|
||||
time = [p[0] for p in data]
|
||||
ch1 = [p[1] for p in data]
|
||||
ch2 = [p[2] for p in data]
|
||||
|
||||
plt.plot(time,ch1, time,ch2)
|
||||
plt.xlabel("Tid (s)")
|
||||
plt.ylabel("Spenning (V)")
|
||||
plt.legend(["Dempet signal","Inngangssignal"])
|
||||
plt.savefig(filename + ".png", dpi=200)
|
||||
plt.show()
|
||||
Reference in New Issue
Block a user