Skip to content

Callback from charts #438

Answered by highfestiva
armeya25 asked this question in Q&A
Jul 20, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Good idea, I added a function which you can use to override with your own line method, so you can get information of when it's moved and stuff like that. Patch your finplot installation with the commit 693744d. The function is called _create_poly_line. Implement something like this:

class MyPolyLine:
    def __init__(self, vb, *args, **kwargs):
        super().__init__(vb, *args, **kwargs)

finplot._create_poly_line = MyPolyLine

Override the relevant methods. See here for what methods currently exist. GL!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@armeya25
Comment options

@highfestiva
Comment options

Answer selected by armeya25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants