Plotting in WxPython
Tanmay Agrawal <[email protected]> Mon, 22 Aug 2022 17:18:50 +0530
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <CALF8AQMB-7MZbu8fsVxMTC14j37T1nSLbzoC_0GwTOTxwxqdKA@mail.gmail.com> |
Hi, I want to display some plots in a GUI made by wxGlade. Currently, the plots are generated by a separate file, and are displayed in a separate window using plt.show(). The plots that are generated are not some simple functions, their data is derived by complex computations over some information received by some sensors. I have tried displaying the plots on the GUI, but can't find success. I am able to display simple plots on the GUI, but when I am applying the same structure to my plots computing file, the *FigureCanvas* *function is giving a runtime error. *Below is the error:- self.canvas = FigureCanvas(self, -1, fig) TypeError: __init__() takes from 1 to 2 positional arguments but 4 were given Can someone please help me with it? Regards, Tanmay _______________________________________________ wxGlade-general mailing list wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/wxglade-general