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

Use mplfinance with Tkinter #55

Closed
haybb opened this issue Mar 17, 2020 · 5 comments
Closed

Use mplfinance with Tkinter #55

haybb opened this issue Mar 17, 2020 · 5 comments
Labels
question Further information is requested

Comments

@haybb
Copy link
Contributor

haybb commented Mar 17, 2020

Hi, how can I embed my mplfinance graph in Tkinter ?

@haybb haybb added the question Further information is requested label Mar 17, 2020
@DanielGoldfarb
Copy link
Collaborator

See issue #46 ... That will do it. (Read through the comments there, and see also some example code given there as well).

If you would like to contribute the enhancement, please do. Otherwise I expect to get around to it in about two weeks.

Duplicate of #46

@haybb
Copy link
Contributor Author

haybb commented Mar 17, 2020

Ok, I will do this, thanks

@DanielGoldfarb
Copy link
Collaborator

@WHug0 Thanks. Perhaps return not only the Figure, but a tuple, where the first element is the Figure, and the second element is a list of the Axes that were created by mpf.plot()

@hmhjapan
Copy link

hmhjapan commented Jan 2, 2021

@WHug0 :
Could you publish the code?
I have the same problem.
thank you!

@DanielGoldfarb
Copy link
Collaborator

@hmhjapan A number of things have changed since this issue was opened almost 10 months ago. The main thing to know is that returnfig=True now does return a tuple the first element of which is the Figure, and the second element of which is a List of Axes objects.

There is a recent example of someone successfully using tkinter here. Please take a look and let us know if you have any more questions.

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

3 participants