-
Notifications
You must be signed in to change notification settings - Fork 654
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
Add option for plot function to return figure and not display the figure itself. #46
Comments
Your code above looks fine; I think you can simplify the
(the validator is already ensuring that I have never used tkinter so I don't know enough to say if returning the Figure will accomplish what you want it to. I suggest, if you feel comfortable, you can make the above change in your own fork, and then test it with your tkiniter code and let me know how it works out. If it accomplishes what you want it to accomplish with tkiniter, then I will consider merging it in. |
Yes the above code does work. An example with tkinter follows: |
OK. There are enough people asking for this. I will include it in the next release. (Maybe a week; maybe two weeks). Thanks for getting back to me. |
Thanks for the quick responses. Although I have not tried this, it seems that if one desired to add additional subplots, one could return the figure from mplfinance and then add as many subplots as one wanted using figure.add_subplot |
I don't think that will work, because by default the subplots that However, I am now 95% certain that I will implement something like what I outlined here which should allow users to create as many subplots as desire in whatever configuration they desire. (The only uncertainty is not knowing what, if any, issues I may encounter while testing it; but my preliminary experiments seem to indicate that it will work OK). |
I desire to use mplfinance with tkinter.
To do this most straight forwardly I desire an option to return the figure.
So adding an option returnfig, using code something like the below:
Adding to vkwargs:
And extending the "savefig" code something like the below:
Code something like the below:
The text was updated successfully, but these errors were encountered: