Skip to content
Snippets Groups Projects
Commit 8caf339e authored by Günter Quast's avatar Günter Quast
Browse files

mcpha.py: small adjustments to layout

parent bbc691cd
Branches
No related tags found
No related merge requests found
......@@ -256,8 +256,9 @@ class MCPHA(QMainWindow, Ui_MCPHA):
self.osc.update()
self.reset_osc()
self.start_osc()
else:
return
#else:
# return
def reset_hst(self, number):
if self.syncCheck.isChecked():
......@@ -552,7 +553,7 @@ class HstDisplay(QWidget, Ui_HstDisplay):
mn = self.min // self.factor
mx = self.max // self.factor
xsize = mx - mn
self.ax.set_xlim(mn - 0.03*xsize, mx*1.03)
self.ax.set_xlim(mn - 0.02*xsize, mx*1.02)
self.ax.relim()
self.ax.autoscale_view(scalex=True, scaley=True)
......@@ -749,6 +750,7 @@ class OscDisplay(QWidget, Ui_OscDisplay):
self.plotLayout.addWidget(self.canvas)
self.ax = self.figure.add_subplot(111)
self.ax.grid()
self.ax.set_xlim(-0.02*self.tot, 1.02*self.tot)
self.ax.set_ylim(-4500, 4500)
self.xunit = "[{:d} ns / sample]".format(4*8)
self.ax.set_xlabel("sample number " + self.xunit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment