Re: Plotting in WxPython
Tanmay Agrawal <[email protected]> Tue, 23 Aug 2022 17:39:54 +0530
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <CALF8AQOxgQET0BOX9mbRdUokNt93OD_D+VShtRx8e-9fT4FT5g@mail.gmail.com> |
Hi Mr. Deitmar, Nevermind, I got it working. (With blit = false only). Thanks a lot for your support! My work could not have proceeded without you :) Regards, Tanmay On Tue, Aug 23, 2022 at 5:14 PM Tanmay Agrawal <[email protected]> wrote: > Hi Mr. Deitmar, > Thanks for sharing the code file > The FuncAnimation is giving the following Runtime error, when run with > parameters mentioned in the code that you sent:- > > RuntimeError: The animation function must return a sequence of Artist > objects > > When I change the 'blit' parameter to 'False', my code runs successfully, > but the plots are not getting updated. > > I am unable to use the exact same structure of the code that you have sent > me, as I have structured my code in a different way, so that might be a > reason for the problem. Although I have tried to incorporate the logic > properly into my code. > > Can we have a short discussion over some meet platform (like gmeet, zoom, > etc.)? It won't take much time. > I believe this issue can be solved with your help. We are pretty close. > > Thanks > Regards, > Tanmay > > On Tue, Aug 23, 2022 at 2:42 PM Dietmar Schwertberger < > [email protected]> wrote: > >> On 23.08.2022 07:08, Tanmay Agrawal wrote: >> > Do you know how can I get Dynamic Plots in WxPython? >> > My plots computing file uses FuncAnimation (a matplotlib function) to >> > update plots at regular intervals. But FuncAnimation isn't working >> > with WxPython. >> >> I have just modified the wxGlade matplotlib_example according to >> matplotlib's simple_anim.py . >> See attachment. >> >> Things seem to work except that the original line is only removed on >> resizing. >> >> Regards, >> >> Dietmar >> _______________________________________________ >> wxGlade-general mailing list >> wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >> https://lists.sourceforge.net/lists/listinfo/wxglade-general >> > _______________________________________________ wxGlade-general mailing list wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/wxglade-general