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

How to make mplfinance support mouse events? #359

Open
lyl1836 opened this issue Mar 19, 2021 · 3 comments
Open

How to make mplfinance support mouse events? #359

lyl1836 opened this issue Mar 19, 2021 · 3 comments
Labels
question Further information is requested

Comments

@lyl1836
Copy link

lyl1836 commented Mar 19, 2021

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 lyl1836 added the question Further information is requested label Mar 19, 2021
@DanielGoldfarb
Copy link
Collaborator

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.

@lyl1836
Copy link
Author

lyl1836 commented Mar 20, 2021

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
Copy link
Author

lyl1836 commented Mar 20, 2021

This problem is replaced by a new one:
#361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants