Hi All, My QApplication has a button (on the main window) which, when clicked, launches a pyqtgraph Plot. The code below shows how the plot is generated in a class.
self.win = pg.GraphicsWindow() self.win.setWindowTitle(self.title) self.p = self.win.addPlot() self.curve = self.p.plot(self.Data1, pen='k') One of the things I have noticed is that when I close the plot window in my application, the memory is not released. So for example, before the button is pressed, the Application takes around 20Mb. Once the plot is launched by clicking the button, this increases to 25Mb. But when I close the plot (by clicking on the x in the top right corner), the Application memory footprint stays at 25Mb. Is there any way to release this 5Mb of memory when the plot is closed (note that I have the line 'self.curve.clear()' so there is no leak while the plot is being updated in real-time). Many thanks for reading! -- You received this message because you are subscribed to the Google Groups "pyqtgraph" 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/pyqtgraph/e26192b4-7729-4ddc-8891-444fa944d883%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
