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
The questions asks how to set a limit to the view which none of the responses to this point answers. For others who come across this the view of the plot can be limited to a section of the axis like this:
p1.plotItem.vb.setLimits(xMin=a, xMax=b, yMin=c, yMax=d)
Documentation: http://www.pyqtgraph.org/documentation/graphicsItems/viewbox.html