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