파이참으로 파이썬 코드 실행 중, figure을 여러개 띄울 때, 창을 닫아야만 그 다음 코드로 진행이 되었다. 이것이 불편해 창을 자동으로 닫게 할 수 있었다. 
plt.show(block=False)

plt.pause(1)

plt.close()

 

src: stackoverflow.com/questions/40395659/view-and-then-close-the-figure-automatically-in-matplotlib

 

이렇게 하면 창이 1초 후 닫히게 된다.

 

 

 

 
 
 

'Python > Matplotlib' 카테고리의 다른 글

matplotlib으로 figure창을 여러개 띄우기  (0) 2020.10.21
Posted by uniqueone
,