forked from IPKM/nmreval
fit results are auto-scaled if data was not fit before; related to #156
This commit is contained in:
parent
c04052294c
commit
340d5d1038
@ -205,14 +205,17 @@ class QFitResult(QtWidgets.QDialog, Ui_Dialog):
|
||||
|
||||
if idx in self.graph_opts:
|
||||
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.setRange(xRange=view_range[0], yRange=view_range[1], padding=0)
|
||||
self.logx_box.blockSignals(True)
|
||||
self.logx_box.setChecked(logx)
|
||||
self.logx_box.blockSignals(False)
|
||||
self.logy_box.blockSignals(True)
|
||||
self.logy_box.setChecked(logy)
|
||||
self.logy_box.blockSignals(False)
|
||||
else:
|
||||
self.fit_plot.enableAutoRange()
|
||||
self.fit_plot.disableAutoRange()
|
||||
|
||||
def set_correlation(self, idx: str):
|
||||
while self.corr_tableWidget.rowCount():
|
||||
|
Loading…
Reference in New Issue
Block a user