Callback from charts #438
-
Is there any option for call back function in finplot. Eg. I want to get value points on which line is drawn, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There are, possibly. I don't understand exactly what you're looking for though. finplot has callbacks for mouse-over, click, double-click, timer and for modifying crosshair text. And it's trivial to re-route the keyboard function for your own purposes. You probably don't mean "while drawing," as the drawing of most things takes milliseconds, and there is no way you're able to read that fast. I'm guessing you mean hover/mouse over, so have a look here: https://github.com/highfestiva/finplot/blob/master/finplot/examples/snp500.py#L57 |
Beta Was this translation helpful? Give feedback.
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:Override the relevant methods. See here for what methods currently exist. GL!