This method must be used with an QPixmap object, not the class: :: # Wrong pixmap = QPixmap.loadFromData(...) # Right pixmap = QPixmap().loadFromData(...) Draws the points specified by two one-dimensional, equally sized numpy arrays representing the x, y values, respectively. _______ end of matrix block _______ --> %CPPSELF.restoreOverrideCursor();