4
다음 코드프로그램 실행 중에 Matplotlib 플롯을 업데이트하는 방법은 무엇입니까?
plt.figure(1)
plt.subplot(211)
plt.axis([0,100, 95, 4000])
plt.plot(array1,array2,'r')
plt.ylabel("label")
plt.xlabel("label")
plt.subplot(212)
plt.specgram(array3)
plt.show()
두 좋은 다이어그램을 생성합니다. 그러나 창을 닫지 않고도 콘텐츠를 어떻게 업데이트합니까?
하나의 스레드에서 창을 만들어야하고 변수가 주 코드에서 업데이트되는 동안 변수를 사용하여 창이 업데이트되고 있습니다.
어떻게 할 수 있습니까?