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

support for matplotlib.animation? #70

Closed
olincb opened this issue Mar 27, 2020 · 4 comments
Closed

support for matplotlib.animation? #70

olincb opened this issue Mar 27, 2020 · 4 comments
Labels
question Further information is requested

Comments

@olincb
Copy link

olincb commented Mar 27, 2020

I've been trying to use returnfig=True to replot live data with matplotlib.animation, but the new axes do not update on the original figure. I believe this is due to the fact that a new figure and axes are created in mplfinance.
A config setting for plot, or a new function, to update axes rather than return a new figure and axes would help with this I think.

@olincb olincb added the question Further information is requested label Mar 27, 2020
@olincb
Copy link
Author

olincb commented Mar 27, 2020

I suppose this comment didn't really have a question in it, so...
Is this a feature you'd be interested in implementing?
Or, is there already a way to do this that I am missing?

@DanielGoldfarb
Copy link
Collaborator

returnfig has limited value (you can only do a few things with it), because, as you mentioned, the Figure and Axes were created by mplfinance, and the Figure is already "full" with the axes that were created. But it was easy to do and allows support for tkinter so it definitely has some value.

I don't know what you mean by

A config setting for plot, or a new function, to update axes rather than return a new figure and axes would help with this I think.

Can you please explain?

There is already an issue to support animation here although several other issues/enhancements are ahead if it, in terms of priority (unless, of course, you or someone else volunteers to do the work?)

And there is an enhancement request here to be able to pass your own Figure and Axes into mpl.plot() which I hope begin work on in about week.

@olincb
Copy link
Author

olincb commented Mar 28, 2020

Oh, excellent. These two feature requests are exactly what I was thinking of. Glad to hear that.

@DanielGoldfarb
Copy link
Collaborator

Duplicate of #25 and
Duplicate of #17

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