lib/mpl_toolkits/axes_grid/parasite_axes.py
def twinx(self):
        """
        call signature::

          ax2 = ax.twinx()

        create a twin of Axes for generating a plot with a sharex
        x-axis but independent y axis.  The y-axis of self will have
        ticks on left and the returned axes will have ticks on the
        right
        """

        ax2 = ParasiteAxes(self, sharex=self, frameon=False)
        self.parasites.append(ax2)

        # for normal axes
        self.yaxis.tick_left()
        ax2.xaxis.set_visible(False)
        ax2.yaxis.tick_right()
        ax2.yaxis.set_label_position('right')

        # for axisline axes
        self._axislines["right"].set_visible(False)
        ax2._axislines["left"].set_visible(False)
        ax2._axislines["right"].set_visible(True)
        ax2._axislines["right"].major_ticklabels.set_visible(True)
        ax2._axislines["right"].label.set_visible(True)


        return ax2

        call signature::

          ax2 = ax.twinx()

        create a twin of Axes for generating a plot with a sharex
        x-axis but independent y axis.  The y-axis of self will have
        ticks on left and the returned axes will have ticks on the
        right
        
call signature::
ax2 = ax.twinx()

create a twin of Axes for generating a plot with a sharex
x-axis but independent y axis.  The y-axis of self will have
ticks on left and the returned axes will have ticks on the
right
call signature :: ax2 = ax . twinx () create a twin of Axes for generating a plot with a sharex x - axis but independent y axis . The y - axis of self will have ticks on left and the returned axes will have ticks on the right
def twinx(self):
        ax2 = ParasiteAxes(self, sharex=self, frameon=False)
        self.parasites.append(ax2)
        self.yaxis.tick_left()
        ax2.xaxis.set_visible(False)
        ax2.yaxis.tick_right()
        ax2.yaxis.set_label_position('right')
        self._axislines["right"].set_visible(False)
        ax2._axislines["left"].set_visible(False)
        ax2._axislines["right"].set_visible(True)
        ax2._axislines["right"].major_ticklabels.set_visible(True)
        ax2._axislines["right"].label.set_visible(True)
        return ax2
def twinx ( self ) : ax2 = ParasiteAxes ( self , sharex = self , frameon = False ) self . parasites . append ( ax2 ) self . yaxis . tick_left ( ) ax2 . xaxis . set_visible ( False ) ax2 . yaxis . tick_right ( ) ax2 . yaxis . set_label_position ( 'right' ) self . _axislines [ "right" ] . set_visible ( False ) ax2 . _axislines [ "left" ] . set_visible ( False ) ax2 . _axislines [ "right" ] . set_visible ( True ) ax2 . _axislines [ "right" ] . major_ticklabels . set_visible ( True ) ax2 . _axislines [ "right" ] . label . set_visible ( True ) return ax2
call signature::
ax2 = ax.twinx()
call signature :: ax2 = ax . twinx ()
"""
        call signature::

          ax2 = ax.twinx()

        create a twin of Axes for generating a plot with a sharex
        x-axis but independent y axis.  The y-axis of self will have
        ticks on left and the returned axes will have ticks on the
        right
        """ # for normal axes # for axisline axes
self