Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot close matplot figure
#6
I also cannot close the window
Here is my code

import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import time

im = mpimg.imread('image_001.png')

img = plt.imshow(im)

plt.show()

time.sleep(5)

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 711 Feb-09-2023, 03:27 AM
Last Post: deanhystad
  Error when running a matplot lib example aurelius_nero 3 6,973 Apr-24-2022, 01:24 PM
Last Post: Axel_Erfurt
  How to save Matplot chart to temp file? Morkus 2 4,577 Jun-12-2021, 10:52 AM
Last Post: Morkus
  remove weekends from matplot mr_byte31 3 4,528 Aug-10-2019, 08:37 AM
Last Post: DeaD_EyE
  Generate matplot animation on a link ambush 0 2,174 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