Exports not consistent with API

13 views
Skip to first unread message

Akshay Verma

unread,
Sep 28, 2016, 9:01:52 AM9/28/16
to pyqtgraph

Hi,

I am trying to export the plots using API and a hidden widget but the results are not consistent. Even worse when using subplots. I am using GraphicsLayoutWidget for plotting data and creating subplots if needed.


This is the export done by menu manually.

This is the export done by API.


What could be the issue?


self.remove_all_items_in_plot_area(plot_widget)
self.gen_plots(file_path, meas_data[file_path], plot_widget, plt_type='export')
QtGui.QApplication.processEvents()
exporter = pg.exporters.ImageExporter(plot_widget.scene())
exporter.parameters()['width'] = 2000
# exporter.parameters()['height'] = 1600
QtGui.QApplication.processEvents()
exporter.export(export_name)


This is the export code




Auto Generated Inline Image 1
Reply all
Reply to author
Forward
0 new messages