Re: Drawing graphs in EG
Posted: Sun Dec 01, 2019 5:04 pm
Thank you for your very quick answer. There is one issue. The code
freezes Eventghost. Everything goes well, if I wipe the picture with
and keep the empty picture in memory without closing it.
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.
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.