Code: Select all
def do():
global plt
plt.close()
del plt
wx.CallAfter(do)
Code: Select all
ax2.remove()
ax1.remove()
My second question refers to the loop. Is it also possible to start the thread for example with a "nomal" event and terminate it after the execution? This would enable me to exchange the existing script without any other modifications.