My first try would be to use a GraphicsLayout and add the two plots that way
layout = pg.GraphicsLayout()
topPlot = pg.PlotDataItem(*args, **kwargs)
bottomPlot = pg.PlotDataItem(*args, **kwargs, axisItems={'bottom', axis})
layout.addItem(topPlot, row=0)
layout.addItem(bottomPlot, row=1)
# layout.layout is QGraphicsGridLayout, which has more sizing methods that
may be handy, like setting fixed heights
layout.layout.setRowFixedHeight(1, 200) # guessing 200 pixels, set the
height to whatever you want
Would that accomplish what you're looking for?
On Mon, Oct 19, 2020 at 11:05 AM Trifon Trifonov <[email protected]>
wrote:
>
> Can somebody please advice how to get a plot like this (attached):
>
> Details are not important, I just need a plot and a residual plot at the
> bottom. Important is also that the x-axis must be one shown at the residual
> plot.
>
>
> I want the same effect for these two plot in the Exo-Striker tool
> (attached 2)
>
> Thanks a lot!
>
>
> --
> 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/252f2f18-e4c2-4c38-b00d-3727f9d9bd48n%40googlegroups.com
> <https://groups.google.com/d/msgid/pyqtgraph/252f2f18-e4c2-4c38-b00d-3727f9d9bd48n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
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/CA%2BnduTGXeRSda7_PEfbTZBtgXdbuh_FisXDmofwwa%2BddDtz8Vw%40mail.gmail.com.