Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pyplot graph size
#1
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 ?
Reply
#2
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()
nilamo likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is Matplotlib.pyplot Loaded DaveG 2 1,306 Apr-06-2022, 06:12 AM
Last Post: DaveG
  Python 3.10 not happy with Pandas and PyPlot? Danno 1 1,566 Feb-26-2022, 05:35 AM
Last Post: Danno
  matplotlib.pyplot.show Alienspecimen 2 2,231 Feb-27-2021, 02:32 AM
Last Post: snippsat
  Understanding The Arguments for matplotlib.pyplot.plot JoeDainton123 0 1,921 Aug-19-2020, 01:19 AM
Last Post: JoeDainton123
  Pyplot and circle Reldaing 0 1,468 Apr-01-2020, 10:44 AM
Last Post: Reldaing
  size of set vs size of dict zweb 0 2,136 Oct-11-2019, 01:32 AM
Last Post: zweb
  .pyplot has not attribute zlim SchroedingersLion 5 9,858 Aug-25-2018, 01:31 PM
Last Post: SchroedingersLion
  CSV file created is huge in size. How to reduce the size? pramoddsrb 0 10,474 Apr-26-2018, 12:38 AM
Last Post: pramoddsrb
  Plot a graph using matplotlib.pyplot Tibas 1 3,454 Feb-23-2018, 10:47 AM
Last Post: Tibas
  matplotlib change graph size kiyoshi7 0 4,763 Feb-02-2018, 10:42 PM
Last Post: kiyoshi7

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020