2022-06-07 16:22:49 +02:00
|
|
|
import math
|
|
|
|
import numpy as np
|
|
|
|
import matplotlib.pyplot as plt
|
|
|
|
import struct
|
2022-06-13 15:07:02 +02:00
|
|
|
import csv
|
|
|
|
import sys
|
2022-06-07 16:22:49 +02:00
|
|
|
|
|
|
|
#"C:\Users\quent\OneDrive\Bureau\ENSC\TransD\Framboisier\02400001.TXT"
|
|
|
|
#! /usr/bin/env python3
|
|
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
|
2022-06-14 11:16:54 +02:00
|
|
|
csv_reader1 = csv.reader(open('./RawDataFiles/RawData1.csv')) #Ouvre le fichier .csv
|
2022-06-14 14:43:43 +02:00
|
|
|
# bigx = float(-sys.maxsize-1)
|
|
|
|
# bigy = float(-sys.maxsize-1)
|
|
|
|
# smallx = float(sys.maxsize)
|
|
|
|
# smally = float(sys.maxsize)
|
2022-06-13 15:07:02 +02:00
|
|
|
capteurs = []
|
2022-06-07 16:22:49 +02:00
|
|
|
|
2022-06-14 14:43:43 +02:00
|
|
|
# for ligne in csv_reader1:
|
|
|
|
# capteurs.append(ligne)
|
|
|
|
# if float(ligne[0]) > bigx:
|
|
|
|
# bigx = float(ligne[0])
|
|
|
|
# if float(ligne[1]) > bigy:
|
|
|
|
# bigy = float(ligne[1])
|
|
|
|
# if float(ligne[0]) < smallx:
|
|
|
|
# smallx = float(ligne[0])
|
|
|
|
# if float(ligne[1]) < smally:
|
|
|
|
# smally = float(ligne[1])
|
|
|
|
|
|
|
|
# capteurs.sort()
|
2022-06-13 15:07:02 +02:00
|
|
|
x_arr = []
|
|
|
|
y_arr = []
|
|
|
|
|
|
|
|
for capteur in capteurs:
|
|
|
|
x_arr.append(capteur[0])
|
|
|
|
y_arr.append(capteur[1])
|
|
|
|
|
2022-06-14 11:16:54 +02:00
|
|
|
fig1 = plt.figure(1, figsize = (5.91, 2.758))
|
2022-06-14 14:43:43 +02:00
|
|
|
ax1 = plt.axes()
|
|
|
|
# fig2 = plt.figure(1, figsize = (5.91, 2.758))
|
|
|
|
# fig3 = plt.figure(1, figsize = (5.91, 2.758))
|
|
|
|
# fig4 = plt.figure(1, figsize = (5.91, 2.758))
|
|
|
|
# fig5 = plt.figure(1, figsize = (5.91, 2.758))
|
|
|
|
# fig6 = plt.figure(1, figsize = (5.91, 2.758))
|
|
|
|
# fig7 = plt.figure(1, figsize = (5.91, 2.758))
|
|
|
|
# fig8 = plt.figure(1, figsize = (5.91, 2.758))
|
|
|
|
# fig9 = plt.figure(1, figsize = (5.91, 2.758))
|
|
|
|
# fig10 = plt.figure(1, figsize = (5.91, 2.758))
|
|
|
|
|
|
|
|
ax1.set_xlabel('Temps')
|
|
|
|
ax1.set_ylabel('Tension')
|
|
|
|
ax1.title("Données tableau 1")
|
|
|
|
ax1.plot(x_arr, y_arr, color = 'r')
|
2022-06-13 15:07:02 +02:00
|
|
|
|
|
|
|
plt.show() #Affiche le tableau à l'écran
|