Hi,

I really don't know if this will work, but since GraphicsLayout uses a Qt 
QGraphicsGridLayout internally to position the plots, you could try setting 
negative spacing 
<https://doc.qt.io/qt-5/qgraphicsgridlayout.html#setRowSpacing> for it. 
Maybe something like:

graphicslayout.layout.setRowSpacing(row=0, -50)

If that doesn't accept negative values, then I'm not too sure. I believe 
it's possible to put two plots into the same row and column of the layout, 
and maybe you could then adjust each plots alignment and size. Anyway, 
hopefully looking through the QGraphicsGridLayout API might give some ideas.

Patrick

On Wednesday, 10 February 2021 at 2:26:29 am UTC+10:30 [email protected] 
wrote:

> Hello!
>
> I would like to create multiple plots in rows, which is relatively 
> straightforward using pg.GraphicsLayout() and the addPlot() method. 
> However,  rows created like that do not overlap. Is there a way how I can 
> (gradually) let them overlap so that the plots e.g. overlap by 20% on the 
> y-axis?
>
> Thanks!
> Clemens
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/9d965d4c-ba69-4789-a5ba-9f20f09d456fn%40googlegroups.com.

Reply via email to