I would like to know how I can set the x and y axis limits that are displayed for a pyqtgraph.GraphicsWindow.addPlot object. I need to display a lot of data inside a loop (hence
As the error message indicates, you have not supplied the correct number of arguments to setXRange(). The correct line should look like:
setXRange()
p1.setXRange(5, 20, padding=0)
Documentation here: http://www.pyqtgraph.org/documentation/graphicsItems/viewbox.html#pyqtgraph.ViewBox.setXRange