Exporting full window made up of multiple plot

154 views
Skip to first unread message

Ian001

unread,
Aug 18, 2016, 10:19:35 PM8/18/16
to pyqtgraph
I am trying to find the correct syntax to export a window created with 

"win=pg.GraphicsWindow()"

that consists of several plots created with 

"p1 = win.addPlot(...) and then p2 = win.addPlot(...)" etc.

I can export a single plot using the command 

exporter = pg.exporters.ImageExporter(p1)

but want to export the whole window made up of several plots.

Can this be done?

Thanks,
Ian

Ian001

unread,
Aug 19, 2016, 6:29:10 AM8/19/16
to pyqtgraph
I have just found that I needed to use 

exporter = pg.exporters.ImageExporter(win.scene())

To achieve what I wanted.
--Ian
Reply all
Reply to author
Forward
0 new messages