taurus_pyqtgraph/y2axis.py
def attachToPlotItem(self, plot_item):
        """Use this method to add this axis to a plot

        :param plot_item: (PlotItem)
        """
        if self._isAttached:
            return  # TODO: log a message it's already attached
        self._isAttached = True

        mainViewBox = plot_item.getViewBox()
        mainViewBox.sigResized.connect(self._updateViews)

        self.plotItem = plot_item

        # add axis-independent actions for logarithmic scale
        self._addLogAxisActions()
        # disable the standard (custom view-unfriendly) log actions
        self.plotItem.ctrl.logXCheck.setEnabled(False)
        self.plotItem.ctrl.logYCheck.setEnabled(False)

        # monkey-patch the addItem method of the PlotItem
        from types import MethodType

        self.plotItem.addItem = MethodType(_PlotItem_addItem, self.plotItem)
Use this method to add this axis to a plot

        :param plot_item: (PlotItem)
        
Use this method to add this axis to a plot
Use this method to add this axis to a plot
def attachToPlotItem(self, plot_item):
        if self._isAttached:
            return  
        self._isAttached = True
        mainViewBox = plot_item.getViewBox()
        mainViewBox.sigResized.connect(self._updateViews)
        self.plotItem = plot_item
        self._addLogAxisActions()
        self.plotItem.ctrl.logXCheck.setEnabled(False)
        self.plotItem.ctrl.logYCheck.setEnabled(False)
        from types import MethodType
        self.plotItem.addItem = MethodType(_PlotItem_addItem, self.plotItem)
def attachToPlotItem ( self , plot_item ) : if self . _isAttached : return self . _isAttached = True mainViewBox = plot_item . getViewBox ( ) mainViewBox . sigResized . connect ( self . _updateViews ) self . plotItem = plot_item self . _addLogAxisActions ( ) self . plotItem . ctrl . logXCheck . setEnabled ( False ) self . plotItem . ctrl . logYCheck . setEnabled ( False ) from types import MethodType self . plotItem . addItem = MethodType ( _PlotItem_addItem , self . plotItem )
Use this method to add this axis to a plot
Use this method to add this axis to a plot
"""Use this method to add this axis to a plot

        :param plot_item: (PlotItem)
        """ # TODO: log a message it's already attached # add axis-independent actions for logarithmic scale # disable the standard (custom view-unfriendly) log actions # monkey-patch the addItem method of the PlotItem
self
plot_item
None