chart changes
This commit is contained in:
		
							parent
							
								
									f0449a472b
								
							
						
					
					
						commit
						15339b98e7
					
				| @ -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 | ||||
|  | ||||
| @ -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') | ||||
|  | ||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 150 KiB | 
| @ -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 | ||||
|  | ||||
| 
 | 
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user