Hi, i was trying to export a graph from a QGraphicsView (promoted to 
PlotWidget with pyqtgraph as header file) but I had some troubles doing 
that. Spyder returns this error:
 
TypeError: 'float' object cannot be interpreted as an integer

So, I found the file where the problem was and made a change in line 70 of 
the file "ImageExporte.py" located in this 
directory: C:\ProgramData\Anaconda3\Lib\site-packages\pyqtgraph\exporters :

line 70 before:  bg = np.empty((self.params['width'], 
self.params['height'], 4), dtype=np.ubyte)

line 70 after:     bg = np.empty((int(self.params['width']), 
int(self.params['height']), 4), dtype=np.ubyte)

And the problem was solved, I didn't know where do I have to report this, 
so i posted this here 

-- 
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/6cdfe038-1aea-40e5-a753-d781f85cb920%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to