Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyQtGraph: how to catch plot range changes?

Tags:

pyqt

pyqtgraph

I have a PyQtGraph plot, that can be zoomed or panned. It changes its ranges. Cannot I somehow get known, when a plot changes its ranges?

like image 763
Felix Avatar asked Dec 06 '25 09:12

Felix


1 Answers

Connect your chosen method (slot) to the PlotItem.sigRangeChanged signal (see http://www.pyqtgraph.org/documentation/graphicsItems/plotitem.html )

like image 129
three_pineapples Avatar answered Dec 09 '25 21:12

three_pineapples