Scatter Plot export cancelation error

Issue #145 closed
Benjamin Jakimow created an issue

Button "Menu" -> "Export" opens a Save file dialog. Canceling this dialog raises the following error:

Traceback (most recent call last):
  File "C:\PROGRA~1\QGIS3~1.0\apps\Python36\lib\site-packages\pyqtgraph\imageview\ImageView.py", line 737, in exportClicked
    self.export(fileName)
  File "C:\PROGRA~1\QGIS3~1.0\apps\Python36\lib\site-packages\pyqtgraph\imageview\ImageView.py", line 722, in export
    img = self.getProcessedImage()
  File "C:\PROGRA~1\QGIS3~1.0\apps\Python36\lib\site-packages\pyqtgraph\imageview\ImageView.py", line 385, in getProcessedImage
    self.levelMin, self.levelMax = list(map(float, self.quickMinMax(self.imageDisp)))
  File "C:\PROGRA~1\QGIS3~1.0\apps\Python36\lib\site-packages\pyqtgraph\imageview\ImageView.py", line 584, in quickMinMax
    while data.size > 1e6:
AttributeError: 'NoneType' object has no attribute 'size'

Solution: wait for next pyqtgraph update. A fix is already suggested in https://github.com/pyqtgraph/pyqtgraph/issues/432

Comments (2)

  1. Log in to comment