Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digit scatters #167

Open
tieugene opened this issue Oct 26, 2022 · 1 comment
Open

Digit scatters #167

tieugene opened this issue Oct 26, 2022 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@tieugene
Copy link
Owner

tieugene commented Oct 26, 2022

Variants:

  • layers
  • replace QCPScatterStyle::drawShape(painter, point)
@tieugene tieugene added the bug Something isn't working label Oct 26, 2022
@tieugene tieugene added this to the 0.2.0 milestone Oct 26, 2022
@tieugene
Copy link
Owner Author

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)

tieugene added a commit that referenced this issue Oct 27, 2022
@tieugene tieugene modified the milestones: 0.2.0, 0.u.i Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant