def __init__(self, *, parent=None): super().__init__(parent=parent) self.setLabel('left', "ADU") self.setLabel('bottom', "Pixel") self.addLegend(offset=(5, 10)) self.setTitle("Averaged spectra over pulses") self._mean = self.plotCurve(name="Current", pen=FColor.mkPen("p")) self._mean_ma = self.plotCurve(name="Moving average", pen=FColor.mkPen("g"))
def __init__(self, *, parent=None): super().__init__(parent=parent) self._plot1 = self.plotCurve(name="Vector1", pen=FColor.mkPen('b')) self._plot2 = self.plotCurve(name="Vector2", pen=FColor.mkPen('r'), y2=True) self.setLabel("bottom", "Pulse index") self.setLabel("left", "Vector1") self.setLabel("right", "Vector2") self.setTitle("Vector view") self.addLegend(offset=(-40, 20))
def __init__(self, *, parent=None): super().__init__(parent=parent) self._idx = 0 self._updateTitle() self.setLabel('left', "ADU") self.setLabel('bottom', "Pixel") self.addLegend(offset=(5, 10)) self._poi = self.plotCurve(name="Current", pen=FColor.mkPen("p")) self._poi_ma = self.plotCurve(name="Moving average", pen=FColor.mkPen("g"))
def __init__(self, *, parent=None): """Initialization.""" super().__init__(parent=parent) self.setLabel('left', "Energy (eV)") self.setLabel('right', "Current (A)") self.setLabel('bottom', "Train ID") self.addLegend(offset=(-40, 20)) self._energy = self.plotCurve(name="Energy", pen=FColor.mkPen('r')) self._current = self.plotCurve(name="Current", pen=FColor.mkPen('b'), y2=True)
def __init__(self, *, parent=None): """Initialization.""" super().__init__(parent=parent) self._idx = 0 self._updateTitle() self.setLabel('left', "ADU") self.setLabel('bottom', "Pixel") self.addLegend(offset=(10, 5)) self._on = self.plotCurve(name="On", pen=FColor.mkPen("r")) self._off = self.plotCurve(name="Off", pen=FColor.mkPen("b"))
def __init__(self, *, parent=None): """Initialization.""" super().__init__(parent=parent) self.setTitle("XAS-p & XAS-n") self.setLabel('left', "Absorption (arb.)") self.setLabel('right', "Count") self.setLabel('bottom', "Energy (eV)") self.addLegend(offset=(-40, 20)) self._displayed = [False] * 4 self._xas_p = self.plotCurve(name="XAS-p", pen=FColor.mkPen('r')) self._xas_n = self.plotCurve(name="XAS-n", pen=FColor.mkPen('b')) self._count = self.plotBar(y2=True, brush=FColor.mkBrush('i', alpha=70))
def __init__(self, *, parent=None): """Initialization.""" super().__init__(parent=parent) self.setTitle("XAS & XMCD") self.setLabel('left', "Absorption (arb.)") self.setLabel('right', "XMCD (arb.)") self.setLabel('bottom', "Energy (eV)") self.addLegend(offset=(-40, 20)) self._displayed = 0 self._xas = self.plotCurve(name="XAS", pen=FColor.mkPen('p')) self._xmcd = self.plotCurve(name="XMCD", pen=FColor.mkPen('g'), y2=True)
def __init__(self, *, parent=None): """Initialization.""" super().__init__(parent=parent) self.setTitle("Laser delay scan") self.setLabel('left', "Position (arb.)") self.setLabel('bottom', "Train ID") self._plot = self.plotCurve(pen=FColor.mkPen('b'))
def __init__(self, *, parent=None): """Initialization.""" super().__init__(parent=parent) self.setTitle("Softmono energy scan") self.setLabel('left', "Energy (eV)") self.setLabel('bottom', "Train ID") self._plot = self.plotCurve(pen=FColor.mkPen('b'))
def __init__(self, *, parent=None): """Initialization.""" super().__init__(parent=parent) self.setTitle("Pulse intensities (SA3)") self.setLabel('left', "Intensity (arb.)") self.setLabel('bottom', "Pulse index") self._plot = self.plotCurve(pen=FColor.mkPen("g"))
def __init__(self, *, parent=None): """Initialization.""" super().__init__(parent=parent) self._idx = 0 self._updateTitle() self.setLabel('left', "ADU") self.setLabel('bottom', "Pixel") self._plot = self.plotCurve(pen=FColor.mkPen("k"))
def __init__(self, diff=False, *, parent=None): """Initialization.""" super().__init__(parent=parent) self._diff = diff self.setTitle("XAS") self.setLabel('left', "Absorption (arb. u.)") self.setLabel('right', "Count") self.addLegend(offset=(-40, 20)) if diff: self._a21 = self.plotCurve(name="ROI2/ROI1", pen=FColor.mkPen("g")) else: # same color as ROI1 self._a13 = self.plotCurve(name="ROI1/ROI3", pen=FColor.mkPen("b")) # same color as ROI2 self._a23 = self.plotCurve(name="ROI2/ROI3", pen=FColor.mkPen("r")) self._count = self.plotBar(name="Count", y2=True, brush=FColor.mkBrush('i', alpha=70))
def __init__(self, *, parent=None): """Initialization.""" super().__init__(parent=parent) self.setTitle("Digitizer pulse integrals") self.setLabel('left', "Pulse integral (arb.)") self.setLabel('bottom', "Pulse index") self.addLegend(offset=(-40, 60)) self._plots = [] for ch, c in zip(_DIGITIZER_CHANNEL_NAMES, _DIGITIZER_CHANNEL_COLORS): self._plots.append( self.plotCurve(name=f"Digitizer channel {ch}", pen=FColor.mkPen(c)))
def __init__(self, *, parent=None): """Initialization.""" super().__init__(parent=parent) self.setTitle("MCP spectra") self.setLabel('left', "Absorption (arb.)") self.setLabel('right', "Count") self.setLabel('bottom', "Energy (eV)") self.addLegend(offset=(-40, 20)) self._displayed = [False] * 4 self._plots = [] for i, c in enumerate(_DIGITIZER_CHANNEL_COLORS): self._plots.append( self.plotCurve(name=f"MCP{i+1}", pen=FColor.mkPen(c))) self._count = self.plotBar(y2=True, brush=FColor.mkBrush('i', alpha=70))