Currently trying to plot a scatter plot in pyqtgraph and trying to drag the plot items but unable to find the approach. Already looked at GraphicsScene sigMouseClicked, sigMouseMoved events. Any suggestions welcome. Let me know in case any further details are required from my side.
Sample code which I am using:
import pyqtgraph as pg
import numpy as np
w = pg.GraphicsWindow()
w.show()
x = [2,4,5,6,8];
y = [2,4,6,8,10];
pl = pg.PlotItem()
pl.plot(x, y, symbol='o')
w.addItem(pl)