Set maxBounds argument in LineSegmentROI

34 views
Skip to first unread message

Mr. D

unread,
Aug 29, 2017, 10:39:16 AM8/29/17
to pyqtgraph
Hello,

the plot seems to ignore the maxBounds argument when I pass it to the LineSegmentROI instance.
Here is the code I am using:

...
kwargs = {"movable": False, "maxBounds": QRect(0,0, 1000,1000)}
roi = pg.LineSegmentROI(positions=((100, 100), (300, 100)), **kwargs)
display.addItem(roi)
display.show()

However, no matter which bounds I sent. I can drag the handles of the roi where ever I want.
How do I need to send the maxBounds correctly?

Thanks a lot!

 
Reply all
Reply to author
Forward
0 new messages