Open tieugene opened 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)
Variants:
QCPScatterStyle::drawShape(painter, point)