Dear Luke,
There you go. I usually just use this command:
$ pyuic4 expTestWin.ui -o expTestWin.py; python export_test.py
You are right, this bug is width-dependant.
I hope this helps.
I didn't try it on windows 7. I can if you want.
Best
Fran�ois
On 09/10/2013 06:55 AM, Luke Campagnola wrote:
> On Mon, Sep 9, 2013 at 5:30 AM, Fran�ois Bocquet <
bocq...@gmail.com
> <mailto:
bocq...@gmail.com>> wrote:
>
> I encountered a puzzling bug while exporting a plotItem. In the
> actual window of the program, the displays curves are fine but if
> this very plot is exported programmatically with:
> exporter =
> pyqtgraph.exporters.__ImageExporter.ImageExporter(__the_plot.plotItem)
> exporter.parameters()['width'] = 1000
> exporter.params['background'] = (0,0,0,0)
> exporter.export(file_name+'.__png')
>
> one curve (blue circles) is displaced both in X and Y direction with
> respect to the display (see attached Fit_refl.png).
>
> Now if I save manually always the same plot, it's saved as
> displayed: that is to say fine! See attached
> Fit.refl_manualSave_ubuntu.__png.
>
> This was observed with Ubuntu 12.04 LTS.
> The worse is that it works fine with Windows7!
>
>
> That is indeed strange. The first thing I notice is that the scatter
> plot points occupy exactly the same pixel locations in both images, so
> apparently the scatter plot is not being informed that the view size has
> changed to 1000px during the export. However, I am not able to reproduce
> this with a simple plot+export test (on Ubuntu 13.04). The best thing
> you can provide is a short example that demonstrates the problem. If I
> can reproduce it on my end, I'll be happy to provide a fix.
>
>
> Luke
>
> --
> -- [ You are subscribed to
pyqt...@googlegroups.com. To unsubscribe,
> send email to
pyqtgraph+...@googlegroups.com ]
> ---
> 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
pyqtgraph+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.