bg = np.empty((int(self.params['width']), int(self.params['height']), 4), 
dtype=np.ubyte)
works fine!

понедельник, 16 января 2017 г., 10:17:02 UTC+3 пользователь 
[email protected] написал:
>
> I want to export plot as png or jpeg. Python 2.7 But i cant save file
>
> Traceback (most recent call last):
>   File 
> "/home/qssha/.local/lib/python2.7/site-packages/pyqtgraph/exporters/Exporter.py",
>  
> line 77, in fileSaveFinished
>     self.export(fileName=fileName, **self.fileDialog.opts)
>   File 
> "/home/qssha/.local/lib/python2.7/site-packages/pyqtgraph/exporters/ImageExporter.py",
>  
> line 70, in export
>     bg = np.empty((self.params['width'], self.params['height'], 4), 
> dtype=np.ubyte)
> TypeError: 'float' object cannot be interpreted as an index
>
> WIth Python 3.5 works fine:(
>

-- 
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/055c3e37-5c08-402a-99cb-1461f652b15b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to