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. 
<https://lh3.googleusercontent.com/--HlxnwiqX7w/V-u-0LSiPXI/AAAAAAAADAQ/AJ_nTbkXReQeE6e2nYt-t2hwXPT3ahBVQCLcB/s1600/plot_with_api.png>

This is the export done by API. 
<https://lh3.googleusercontent.com/--HlxnwiqX7w/V-u-0LSiPXI/AAAAAAAADAQ/AJ_nTbkXReQeE6e2nYt-t2hwXPT3ahBVQCLcB/s1600/plot_with_api.png>


<https://lh3.googleusercontent.com/--HlxnwiqX7w/V-u-0LSiPXI/AAAAAAAADAQ/AJ_nTbkXReQeE6e2nYt-t2hwXPT3ahBVQCLcB/s1600/plot_with_api.png>

What could be the issue? 
<https://lh3.googleusercontent.com/--HlxnwiqX7w/V-u-0LSiPXI/AAAAAAAADAQ/AJ_nTbkXReQeE6e2nYt-t2hwXPT3ahBVQCLcB/s1600/plot_with_api.png>


<https://lh3.googleusercontent.com/--HlxnwiqX7w/V-u-0LSiPXI/AAAAAAAADAQ/AJ_nTbkXReQeE6e2nYt-t2hwXPT3ahBVQCLcB/s1600/plot_with_api.png>

> 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)
>
>
<https://lh3.googleusercontent.com/--HlxnwiqX7w/V-u-0LSiPXI/AAAAAAAADAQ/AJ_nTbkXReQeE6e2nYt-t2hwXPT3ahBVQCLcB/s1600/plot_with_api.png>

This is the export code
<https://lh3.googleusercontent.com/--HlxnwiqX7w/V-u-0LSiPXI/AAAAAAAADAQ/AJ_nTbkXReQeE6e2nYt-t2hwXPT3ahBVQCLcB/s1600/plot_with_api.png>




-- 
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/b1209566-6052-4c29-b694-9dd4e533f33d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to