-
Notifications
You must be signed in to change notification settings - Fork 653
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
Automatically make plot fullscreen #85
Comments
Not yet. But we could easily add a kwarg to do that. Do you want to write the code for it? |
I've never done anything like that before but I'd love to have a go at it. Can you provide me with some guidance please? |
Certain I can guide you. Will have to wait till next week though. |
Is there a way to fullscreen? |
This should be relatively easy to code, but according to this answer the code may have to check which backend the user is running. I tested with backend Qt5Agg and Alternatively, you can do this now with the following workaround: Set Then add the appropriate lines of code from this answer, and call plt.show(), for example:
|
It would be great to be able to fullscreen by just setting an atribute = True. Thank you! |
DId some playing around in 783 elif not config['returnfig']:
784 if config['fullscreen']:
785 figmgr = plt.get_current_fig_manager()
786 bkend = plt.get_backend()
787 if bkend == 'TkAgg':
788 #figmgr.window.state('zoomed')
789 figmgr.resize(*figmgr.window.maxsize())
790 elif bkend == 'wxAgg':
791 figmgr.frame.Maximize(True)
792 else: # Qt4Agg, Qt5Agg, maybe others??
793 figmgr.window.showMaximized()
794 plt.show(block=config['block']) # https://stackoverflow.com/a/13361748/1639359
795 if config['closefig'] == True or (config['block'] and config['closefig']):
796 plt.close(fig) not sure whether i want to put code in mplfinance that will strongly depend on the users choice for matplotlib backend, and not be certain that I have all backends working in all operating systems (for example, supposedly Will leave this issue open for now to see if we can come up with a clean way to do this. |
Hi,
I'm very new to mplfinance and an amateur with Python
This package is awesome, thank you for your work. I was just wondering if there is a way to make the plot automatically appear in fullscreen? Currently it appears as a window and you have to enlarge it manually...
I know that in Matplotlib it can be done using:
plt.get_current_fig_manager().window.state('zoomed')
Is there a way to do it with mplfinance?
Thank you
The text was updated successfully, but these errors were encountered: