1
0
forked from IPKM/nmreval

fit results are auto-scaled if data was not fit before; related to #156

This commit is contained in:
Dominik Demuth 2023-11-28 18:31:19 +01:00
parent c04052294c
commit 340d5d1038

View File

@ -205,14 +205,17 @@ class QFitResult(QtWidgets.QDialog, Ui_Dialog):
if idx in self.graph_opts: if idx in self.graph_opts:
view_range, logx, logy = self.graph_opts[idx] view_range, logx, logy = self.graph_opts[idx]
self.fit_plot.setRange(xRange=view_range[0], yRange=view_range[1], padding=0)
self.fit_plot.setLogMode(x=logx, y=logy) self.fit_plot.setLogMode(x=logx, y=logy)
self.fit_plot.setRange(xRange=view_range[0], yRange=view_range[1], padding=0)
self.logx_box.blockSignals(True) self.logx_box.blockSignals(True)
self.logx_box.setChecked(logx) self.logx_box.setChecked(logx)
self.logx_box.blockSignals(False) self.logx_box.blockSignals(False)
self.logy_box.blockSignals(True) self.logy_box.blockSignals(True)
self.logy_box.setChecked(logy) self.logy_box.setChecked(logy)
self.logy_box.blockSignals(False) self.logy_box.blockSignals(False)
else:
self.fit_plot.enableAutoRange()
self.fit_plot.disableAutoRange()
def set_correlation(self, idx: str): def set_correlation(self, idx: str):
while self.corr_tableWidget.rowCount(): while self.corr_tableWidget.rowCount():