Exemplo n.º 1
0
    def removeItem(self, item):
        """Reimplemented from :class:`pyqtgraph.ViewBox`"""
        ViewBox.removeItem(self, item)

        # when last curve is removed from self (axis Y2), we must remove the
        # axis from scene and hide the axis.
        if len(self.addedItems) < 1:
            self.plotItem.scene().removeItem(self)
            self.plotItem.hideAxis('right')

        self._curvesModelNames.remove(item.getFullModelNames())
Exemplo n.º 2
0
 def removeItem(self, item):
     """Reimplemented from :class:`pyqtgraph.ViewBox`"""
     ViewBox.removeItem(self, item)
     if self.plotItem is not None:
         self.plotItem.showAxis("right", show=bool(self.addedItems))