Exemple #1
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))
Exemple #2
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")
Exemple #3
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))
    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))
Exemple #5
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))
Exemple #6
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))