forked from IPKM/nmreval
Co-authored-by: Dominik Demuth <dominik.demuth@physik.tu-darmstadt.de> Reviewed-on: IPKM/nmreval#259
This commit is contained in:
parent
299bb043ea
commit
403273e0d7
@ -413,12 +413,12 @@ class QPreviewDialog(QtWidgets.QDialog, Ui_ApodEdit):
|
|||||||
|
|
||||||
vb = self.time_graph.getPlotItem().getViewBox()
|
vb = self.time_graph.getPlotItem().getViewBox()
|
||||||
vb.disableAutoRange(axis=vb.YAxis)
|
vb.disableAutoRange(axis=vb.YAxis)
|
||||||
|
if self._all_time is not None:
|
||||||
self.zerofill_box.setVisible(self._all_time)
|
self.zerofill_box.setVisible(self._all_time)
|
||||||
self.apod_box.setVisible(self._all_time)
|
self.apod_box.setVisible(self._all_time)
|
||||||
self.shift_box.setVisible(self._all_time)
|
self.shift_box.setVisible(self._all_time)
|
||||||
self.time_graph.setVisible(self._all_time)
|
self.time_graph.setVisible(self._all_time)
|
||||||
self.logtime_widget.setVisible(self._all_time)
|
self.logtime_widget.setVisible(self._all_time)
|
||||||
|
|
||||||
self._temp_baseline = self._temp_baseline_time if self._all_time else self._temp_baseline_freq
|
self._temp_baseline = self._temp_baseline_time if self._all_time else self._temp_baseline_freq
|
||||||
self._temp_fft = self._temp_fft_time if self._all_time else self._temp_fft_freq
|
self._temp_fft = self._temp_fft_time if self._all_time else self._temp_fft_freq
|
||||||
|
@ -428,6 +428,7 @@ class UpperManagement(QtCore.QObject):
|
|||||||
self.graphs[d.graph].update_legend(identifier, name)
|
self.graphs[d.graph].update_legend(identifier, name)
|
||||||
elif identifier in self.graphs:
|
elif identifier in self.graphs:
|
||||||
self.graphs[identifier].title = name
|
self.graphs[identifier].title = name
|
||||||
|
self.graphs.valueChanged.emit()
|
||||||
else:
|
else:
|
||||||
raise KeyError('Unknown ID ' + str(identifier))
|
raise KeyError('Unknown ID ' + str(identifier))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user