Re: Plotting in WxPython

Tanmay Agrawal <[email protected]> Tue, 23 Aug 2022 10:38:46 +0530
Newsgroups gmane.comp.python.wxglade
Message-ID <CALF8AQMAEqJ4oHcnNrcLbWX8bQVbimM-kvrQutca1AFq3i2Phw@mail.gmail.com>
Hi Mr. Deitmar,
Thanks a lot! My plots are appearing now in the GUI.
However, as I've mentioned earlier, I still can't get dynamic plots
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.

Thanks
Regards,
Tanmay

On Mon, Aug 22, 2022 at 9:08 PM Dietmar Schwertberger <
[email protected]> wrote:

> On 22.08.2022 16:48, Tanmay Agrawal wrote:
>
> I am using the FigureCanvasAgg instead of FigureCanvas*Wx*Agg. Other than
> that everything is same. Do you think that can be the reason for the
> problem? Actually I don't have the hardware with me, so can't test it right
> now.
>
> Using FigureCanvasAgg could end up in matplotlib picking the wrong
> backend. Better explicitely use the WxAgg version.
>
> With such problems you can always use a debugger and set a breakpoint.
> Then step through and see which backend is being called and which
> signatures are supported.
>
>
> Also, the plots are dynamic in nature. *FuncAnimation *is used for that
> purpose right now in my plots file (the file which is computing plots).
> Do I need to make any special changes for that?
>
> No idea. I have never used FuncAnimation.
>
> 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