def _new_graph(self): self._graph = QtGui.QPixmap(self.width(), self.height()) self._graph.fill(Qt.black)