diff --git a/Automation/Analisis_data.py b/Automation/Analisis_data.py index a69636b..f54960c 100644 --- a/Automation/Analisis_data.py +++ b/Automation/Analisis_data.py @@ -119,7 +119,7 @@ class Data: linestyle='-', color=self.color[1]) def make_grafic(self, named_by_points=True): - plt.figure(dpi=500, figsize=(4, 3)) + plt.figure(dpi=500, figsize=(8, 5)) self.make_errors() if named_by_points: self.cap_point = self.caption diff --git a/Automation/Main_experiment_window.py b/Automation/Main_experiment_window.py index ac7c077..6a8fb87 100644 --- a/Automation/Main_experiment_window.py +++ b/Automation/Main_experiment_window.py @@ -8,9 +8,10 @@ Created on Fri Nov 11 20:00:45 2022 import os import csv import serial +import numpy as np import time from PyQt6 import QtCore -from PyQt6.QtGui import QIcon, QPixmap +from PyQt6.QtGui import QPixmap from PyQt6.QtWidgets import (QLabel, QLineEdit, QPushButton, @@ -199,7 +200,7 @@ class MainExperimentDataWindow(AbstractWindow): # protect of errors: if a > 1: self.stop_clicked() - + f_volt.close() f_amp.close() @@ -223,8 +224,11 @@ class MainExperimentChartWindow(AbstractWindow): self.parent.data = Data(data_filename=os.path.join(self.parent.folder, self.parent.dataname), saving=os.path.join(self.parent.folder, self.parent.chartname)) self.parent.data.read_csv() - self.parent.data.x = self.parent.data.data['I_0,mA'] + # add B(I_M) #TODO + self.parent.data.x = np.array(self.parent.data.data['I_0,mA'])*np.array(self.parent.data.data['I_M,mA']) self.parent.data.y = self.parent.data.data['U_34,mV'] + self.parent.data.ylabel = 'U_34,mV' + self.parent.data.xlabel = 'I$_{обр} \cdot B$, мА$\cdot $ Tл' self.parent.data.make_grafic() self.setWindowTitle('Основной эксперимент. Обработка данных') @@ -237,8 +241,8 @@ class MainExperimentChartWindow(AbstractWindow): self.parent.folder, self.parent.chartname)) self.label = QLabel(self) self.label.setScaledContents(True) + self.label.setFixedSize(0.7*self.width(), 0.9*self.height()) self.label.setPixmap(pixmap) - self.label.setFixedSize(0.7*self.width(), self.height()) self.text = QTextBrowser() self.text.setText('text') diff --git a/Automation/__pycache__/Analisis_data.cpython-39.pyc b/Automation/__pycache__/Analisis_data.cpython-39.pyc index f687c90..11041af 100644 Binary files a/Automation/__pycache__/Analisis_data.cpython-39.pyc and b/Automation/__pycache__/Analisis_data.cpython-39.pyc differ diff --git a/Automation/__pycache__/Main_experiment_window.cpython-39.pyc b/Automation/__pycache__/Main_experiment_window.cpython-39.pyc index c322721..2371fe2 100644 Binary files a/Automation/__pycache__/Main_experiment_window.cpython-39.pyc and b/Automation/__pycache__/Main_experiment_window.cpython-39.pyc differ diff --git a/Automation/j/Chart.png b/Automation/j/Chart.png index 8b3bf98..23e5d5c 100644 Binary files a/Automation/j/Chart.png and b/Automation/j/Chart.png differ diff --git a/Automation/j/data.csv b/Automation/j/data.csv index edf27ad..c2c22a0 100644 --- a/Automation/j/data.csv +++ b/Automation/j/data.csv @@ -3,11 +3,3 @@ 16.7,16.7,0.016666666666666666,0.16699999999999998,5.0,1,1002 33.38333333333333,33.38333333333333,0.016666666666666666,0.3338333333333333,10.0,1,2003 50.06666666666667,50.06666666666667,0.016666666666666666,0.5006666666666667,15.0,1,3004 -66.75,66.75,0.016666666666666666,0.6675,20.0,1,4005 -83.43333333333334,83.43333333333334,0.016666666666666666,0.8343333333333334,25.0,1,5006 -100.11666666666666,100.11666666666666,0.016666666666666666,1.0011666666666665,30.0,1,6007 -142.81666666666666,142.81666666666666,142.81666666666666,1.4281666666666666,0,2,8569 -172.68333333333334,172.68333333333334,172.68333333333334,1.7268333333333334,0,3,10361 -212.01666666666668,212.01666666666668,212.01666666666668,2.120166666666667,0,5,12721 -235.11666666666667,235.11666666666667,235.11666666666667,2.351166666666667,0,6,14107 -256.65,256.65,256.65,2.5664999999999996,0,7,15399