Re: Plotting to a matplotlib / pyplot window does not work
Matthias Brennwald <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
On Do, Jul 23, 2020 at 13:05, Andrea Gavana <[email protected]> wrote: > I also have an application that does heavy calculations in a separate > thread and updates the main plotting window at selected timesteps. > Depending on the model, I may get between 1 and 100 results per > second and I have to update the plot with that. Speeding up the plotting part is certainly useful. However, my question was more related to how it would be possible to avoid the situation that the GUI may lock up. I guess the issue is that in my code example the calls to wx.CallLater( ...update_the_plot... ) are piling up, and therefore the queue is blocking all other code that would be called to handle the GUI. Since I am a newbie to wxPython I would be surprised if there weren't a few better ways than what I did my example. Maybe there is a mechanism that avoids the wx.CallLater(...) from piling up, or something else than wx.CallLater(...) entirely. -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/Z67XDQ.RKM31SM9BZIE%40gmail.com.