Python Forum

Full Version: Pyplot graph size
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am reading from an excel sheet and plotting various results.
 
    #set plot
    plt.plot(df[str('Temperature')], ls='-')
    # set label
    plt.xlabel('Hours since start')
    plt.ylabel('temp')
    plt.title('Temperature "C"')
    #plt.legend('Legend')
    mng = plt.get_current_fig_manager()
    mng.full_screen_toggle()
    plt.show()
when the graph fills the screen as I want, I cannot see how to get back to normal size.
Using ctr esc has no effect
Can anyone help a beginner ?
And here is the answer
plt.figure(figsize=(14, 6))
instead of filling the screen with
mng = plt.get_current_fig_manager()
mng.full_screen_toggle()