2022-06-07 16:22:49 +02:00
|
|
|
#! /usr/bin/env python3
|
|
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
|
2022-06-15 15:46:40 +02:00
|
|
|
import numpy as np
|
|
|
|
import matplotlib.pyplot as plt
|
|
|
|
import csv
|
2022-06-13 15:07:02 +02:00
|
|
|
|
|
|
|
|
2022-06-15 15:46:40 +02:00
|
|
|
tab = np.zeros([1,9])
|
2022-06-13 15:07:02 +02:00
|
|
|
|
2022-06-15 15:46:40 +02:00
|
|
|
with open('../RawDataFiles/RawData667.csv', newline='') as csvfile:
|
|
|
|
reader = csv.reader(csvfile, quoting=csv.QUOTE_NONNUMERIC)
|
|
|
|
for row in reader:
|
|
|
|
t = np.zeros([1,9])
|
|
|
|
t[0] = row
|
|
|
|
tab = np.append(tab ,t , axis = 0)
|
2022-06-13 15:07:02 +02:00
|
|
|
|
|
|
|
|
2022-06-15 15:46:40 +02:00
|
|
|
#print(tab)
|
|
|
|
"""
|
|
|
|
x = tab[:,0]
|
|
|
|
y = tab[:,1]
|
2022-06-13 15:07:02 +02:00
|
|
|
|
2022-06-15 15:46:40 +02:00
|
|
|
print(x)
|
|
|
|
print("y = " + str(y))
|
|
|
|
"""
|
|
|
|
def printFig(axe_x , axe_y , title = "new plot" , xlabel = "axe x" , ylabel = "axe y"):
|
|
|
|
plt.plot(axe_x , axe_y)
|
|
|
|
plt.xlabel(xlabel)
|
|
|
|
plt.ylabel(ylabel)
|
|
|
|
plt.title(title)
|
|
|
|
plt.show()
|
|
|
|
return 0
|
2022-06-13 15:07:02 +02:00
|
|
|
|
|
|
|
|
2022-06-15 15:46:40 +02:00
|
|
|
#printFig(x,y)
|