Exemplo n.º 1
0
    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"))
Exemplo n.º 2
0
    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))
Exemplo n.º 3
0
    def __init__(self, *, parent=None):
        """Initialization."""
        super().__init__(parent=parent)

        self.setTitle("XGM spectrum")
        self.setLabel('left', "I0 (arb.)")
        self.setLabel('right', "Count")
        self.setLabel('bottom', "Energy (eV)")

        self._plot = self.plotScatter(brush=FColor.mkBrush("w"))
        self._count = self.plotBar(y2=True,
                                   brush=FColor.mkBrush('i', alpha=70))
Exemplo n.º 4
0
    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)
Exemplo n.º 5
0
    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"))
Exemplo n.º 6
0
    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"))
Exemplo n.º 7
0
    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)
Exemplo n.º 8
0
    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))
Exemplo n.º 9
0
    def __init__(self, *, parent=None):
        super().__init__(parent=parent)

        self._plot = self.plotScatter(brush=FColor.mkBrush('g', alpha=120))

        self.setLabel("bottom", "Vector1")
        self.setLabel("left", "Vector2")
        self.setTitle("Correlation")
Exemplo n.º 10
0
    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'))
Exemplo n.º 11
0
    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"))
Exemplo n.º 12
0
    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'))
Exemplo n.º 13
0
    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))
Exemplo n.º 14
0
    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"))
Exemplo n.º 15
0
    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))
Exemplo n.º 16
0
    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)))
Exemplo n.º 17
0
    def __init__(self, idx, *, parent=None):
        """Initialization.

        :param int idx: channel index.
        """
        super().__init__(parent=parent)

        self.setLabel('left', "I1 (arb.)")
        self.setLabel('bottom', "I0 (micro J)")
        self.setTitle(f"MCP{idx+1} correlation")
        self._idx = idx

        self._plot = self.plotScatter(
            brush=FColor.mkBrush(_DIGITIZER_CHANNEL_COLORS[idx], alpha=150))