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/2272543a-5d12-48e3-8ee4-fef993c5ca67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to