Following code
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()
creates two beautiful diagrams. But how do you update your content without closing the window?
I need to create a window in one thread, and although the variable is updated in the main code, the window is updated using the variable.
How do you do this?
source share