Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot close matplot figure
#1
I thought it should be easy, but I couldn't get to close my figure.

My code:
import matplotlib.pyplot as plt
x=[1,2,3]
y=[5,7,4]
x2=[1,2,3]
y2=[10,14,12]
plt.plot(x,y,label="First Line")
plt.plot(x2,y2,label='Second Line')
plt.xlabel('Plot Number')
plt.ylabel('Important var')
plt.title('Interesting Graph\nCheck it out')
plt.legend()
plt.show()
plt.close()
Reply


Messages In This Thread
Cannot close matplot figure - by landlord1984 - Jan-10-2017, 08:35 AM
RE: Cannot close matplot figure - by j.crater - Jan-10-2017, 12:37 PM
RE: Cannot close matplot figure - by landlord1984 - Jan-10-2017, 04:43 PM
RE: Cannot close matplot figure - by j.crater - Jan-10-2017, 08:01 PM
RE: Cannot close matplot figure - by landlord1984 - Jan-11-2017, 06:38 AM
RE: Cannot close matplot figure - by Aung_Myo_Htut - May-11-2018, 04:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Matplot / numpy noisy data problem the57chambers 1 772 Feb-09-2023, 03:27 AM
Last Post: deanhystad
  Error when running a matplot lib example aurelius_nero 3 7,289 Apr-24-2022, 01:24 PM
Last Post: Axel_Erfurt
  How to save Matplot chart to temp file? Morkus 2 4,689 Jun-12-2021, 10:52 AM
Last Post: Morkus
  remove weekends from matplot mr_byte31 3 4,635 Aug-10-2019, 08:37 AM
Last Post: DeaD_EyE
  Generate matplot animation on a link ambush 0 2,234 Apr-01-2019, 10:23 AM
Last Post: ambush

Forum Jump:

User Panel Messages

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