functions added
This commit is contained in:
parent
aafd732599
commit
d63c9cb8df
|
@ -9,22 +9,18 @@ import csv
|
||||||
#! /usr/bin/env python3
|
#! /usr/bin/env python3
|
||||||
# -*- coding: UTF-8 -*-
|
# -*- coding: UTF-8 -*-
|
||||||
|
|
||||||
with open('../RawDataFiles/RawData1.csv', 'r') as f:
|
def tab():
|
||||||
data = csv.reader(f, quoting = csv.QUOTE_MINIMAL)
|
with open('../RawDataFiles/RawData1.csv', 'r') as f:
|
||||||
data2 = [data2 for data2 in data]
|
data = csv.reader(f, quoting = csv.QUOTE_MINIMAL)
|
||||||
data_array = np.asarray(data2)
|
data2 = [data2 for data2 in data]
|
||||||
print(data_array[:,5])
|
data_array = np.asarray(data2)
|
||||||
|
print(data_array[:,5])
|
||||||
|
|
||||||
# for lign in data:
|
def graph():
|
||||||
# print(lign)
|
plt.xlabel('Temps')
|
||||||
# print("\n")
|
plt.ylabel('Tension')
|
||||||
|
plt.title("Données tableau 1")
|
||||||
|
plt.plot(x, y, color = 'r')
|
||||||
|
plt.show() #Affichage du plot
|
||||||
|
|
||||||
# dataset = np.loadtxt('../RawDataFiles/RawData1.csv', delimiter='\t', dtype='str')
|
tab()
|
||||||
# print(dataset)
|
|
||||||
|
|
||||||
plt.xlabel('Temps')
|
|
||||||
plt.ylabel('Tension')
|
|
||||||
plt.title("Données tableau 1")
|
|
||||||
plt.plot(x, y, color = 'r')
|
|
||||||
|
|
||||||
plt.show() #Affichage du plot
|
|
Loading…
Reference in a new issue