[pyqtgraph] Re: how to us pyqtgraph in pyqt5 without new window?

2018-02-22 Thread Kushal K
If you want the plot as your main widget in a window, just use a QMainWindow and set the PlotWidget from pyqtgraph as the central widget. If you want more control over your layout and where the plot is positioned use Qt Creator and promote a Qt widget to a PlotWidget. See here http://www.pyqtg

[pyqtgraph] Re: ROI wont update its handle coordinates when dragging

2018-02-22 Thread Friedrich
as it turns out, i really was close. instead of taking the points from the state, the handle postions needed to be mapped to parent. i adjusted the MWE for those who are interested: import pyqtgraph as pg def roiMove(): """Print the coordinates of the ROI.""" pts = roi.getSceneHandlePosit