mplfinance icon indicating copy to clipboard operation
mplfinance copied to clipboard

How to make mplfinance support mouse events?

Open lyl1836 opened this issue 3 years ago • 3 comments

Normal financial analysis data, hope to support mouse events. I read the history Q & A, and there were similar questions, but there was no final result.

Excuse me, how can I get mplfnance to support mouse events?

lyl1836 avatar Mar 19 '21 09:03 lyl1836

Presently there is nothing built into mplfinance to support mouse events. For the time being, you will have to:

  1. gain access to the mplfinance Figure and Axes objects and
  2. use Matplotlib to code whatever mouse events to which you want the mplfinance plot to respond.

DanielGoldfarb avatar Mar 19 '21 13:03 DanielGoldfarb

Hi, @DanielGoldfarb : After repeated testing, mplfinance can support mouse entry, label click mouse events. But what I want most is the K-line mouse event. K line is through mplfinance.plot () to generate, and then: plot does not support "picker", which makes it impossible to accurately obtain the corresponding data of K-line graph. If passed matplotlib.plot () to support "picker" can not make better use of the characteristics of mplfinance.

Now the question is:

How to use the advantages of mplfinance in drawing financial charts and support "picker"?Can you give me an example?

lyl1836 avatar Mar 20 '21 03:03 lyl1836

This problem is replaced by a new one: #361

lyl1836 avatar Mar 20 '21 10:03 lyl1836