def mouseDoubleClickEvent(self, event): """Reimplement QWidget method""" for axis_id in self.AXIS_IDS: widget = self.axisWidget(axis_id) if widget.geometry().contains(event.pos()): self.edit_axis_parameters(axis_id) break else: QwtPlot.mouseDoubleClickEvent(self, event)
def showEvent(self, event): """Reimplement Qwt method""" QwtPlot.showEvent(self, event) if self._start_autoscaled: self.do_autoscale()