tieugene / iosc.py

View/analyze comtrade oscillograms (python3 version)
GNU General Public License v3.0
1 stars 1 forks source link

Digit scatters #167

Open tieugene opened 2 years ago

tieugene commented 2 years ago

Variants:

tieugene commented 2 years ago
class AnalogSignalGraph(SignalGraph):
    class DigitScatterStyle(QCPScatterStyle):
        def __init__(self):
            super().__init__(QCPScatterStyle.ssCircle)

        def drawShape(self, painter: QCPPainter, *__args):  # not works
            print(len(__args))
            super().drawShape(painter, *__args)
    ...
    def refresh_scatter(self, scat_style: EScatter) -> bool:
        if self.__scat_style != scat_style:
            if scat_style < EScatter.P:
                shape = QCPScatterStyle(QCPScatterStyle.ssNone)
            elif scat_style < EScatter.D:
                shape = QCPScatterStyle(QCPScatterStyle.ssPlus)
            else:
                shape = self.DigitScatterStyle()
            self._graph.setScatterStyle(shape)