def __init__(self,x_min,x_max,data):
QWidget.__init__(self)
self.setWindowTitle(_("Poly fit")+"(https://www.gpvdm.com)")
self.data=data
self.ret_math=None
self.ret=None
self.interal_data=[]
for i in range (0,self.data.y_len): #x_nm= [x * 1e9 for x in self.data.y_scale]
x=self.data.y_scale[i]
#print(x_min,x,x_max)
if x>=x_min and x<=x_max:
self.interal_data.append((self.data.y_scale[i],self.data.data[0][0][i]))
#print(self.data.y_scale[i],self.data.data[0][0][i])
#frequency, = self.ax1.plot(x_nm,self.data.data[0][0][i], 'bo-', linewidth=3 ,alpha=1.0)
#print(self.interal_data)
self.main_vbox=QVBoxLayout()
self.label = QLabel(_("Polynomial coefficients"))
self.main_vbox.addWidget(self.label)
self.sp = QSpinBox()
self.main_vbox.addWidget(self.sp)
self.button = QPushButton(_("Ok"), self)
self.button.clicked.connect(self.callback_click_ok)
self.main_vbox.addWidget(self.button)
self.setLayout(self.main_vbox)
ret=False
评论列表
文章目录