remove gap between plot items in GraphicsLayoutWidget

25 views
Skip to first unread message

Mark

unread,
Jan 17, 2019, 2:54:07 PM1/17/19
to pyqtgraph
Hi there,

I have a GraphicsLayoutWidget with three PlotItems in it.  One PlotItem spans 2 columns in Row 0, and two PlotItems in Row 1 each span 1 column.

I would like the PlotItems to lie directly adjacent to one another, with no gap between their borders. 

if I use SetContentsMargin() , it only seems to affect the border around the PlotItems and not the gap between them.

Any ideas how I can set the border between the PlotItems in my GraphicsLayout to 0? 

Thanks!

Mark


Mark

unread,
Jan 17, 2019, 3:01:06 PM1/17/19
to pyqtgraph
Figured it out!

GraphicsLayout.setSpacing(0) did the trick.
Reply all
Reply to author
Forward
0 new messages