How to update a plot in pyqtgraph?
问题 I am trying to have a user interface using PyQt5 and pyqtgraph. I made two checkboxes and whenever I select them I want to plot one of the two data sets available in the code and whenever I deselect a button I want it to clear the corresponding curve. There are two checkboxes with texts A1 and A2 and each of them plot one set of data. I have two issues: 1- If I select A1 it plots the data associated with A1 and as long as I do not select A2 , by deselecting A1 I can clear the data associated