parameters: (self)
return_statement: return ax2
docstring: Create a twin Axes sharing the xaxis
  
          Create a new Axes instance with an invisible x-axis and an independent
          y-axis positioned opposite to the original one (i.e. at right). The
          x-axis autoscale setting will be inherited from the original Axes.
          To ensure that the tick marks of both y-axes align, see
          `~matplotlib.ticker.LinearLocator`
  
          Returns
          -------
          ax_twin : Axes
              The newly created Axes instance
  
          Notes
          -----
          For those who are 'picking' artists while using twinx, pick
          events are only called for the artists in the top-most axes.
docstring_summary: Create a twin Axes sharing the xaxis
docstring_tokens: Create a twin Axes sharing the xaxis
function: def twinx(self):
          """
          Create a twin Axes sharing the xaxis
  
          Create a new Axes instance with an invisible x-axis and an independent
          y-axis positioned opposite to the original one (i.e. at right). The
          x-axis autoscale setting will be inherited from the original Axes.
          To ensure that the tick marks of both y-axes align, see
          `~matplotlib.ticker.LinearLocator`
  
          Returns
          -------
          ax_twin : Axes
              The newly created Axes instance
  
          Notes
          -----
          For those who are 'picking' artists while using twinx, pick
          events are only called for the artists in the top-most axes.
          """
          ax2 = self._make_twin_axes(sharex=self, projection='mantid')
          ax2.yaxis.tick_right()
          ax2.yaxis.set_label_position('right')
          ax2.yaxis.set_offset_position('right')
          ax2.set_autoscalex_on(self.get_autoscalex_on())
          self.yaxis.tick_left()
          ax2.xaxis.set_visible(False)
          ax2.patch.set_visible(False)
          return ax2
function_tokens: def twinx ( self ) : ax2 = self . _make_twin_axes ( sharex = self , projection = 'mantid' ) ax2 . yaxis . tick_right ( ) ax2 . yaxis . set_label_position ( 'right' ) ax2 . yaxis . set_offset_position ( 'right' ) ax2 . set_autoscalex_on ( self . get_autoscalex_on ( ) ) self . yaxis . tick_left ( ) ax2 . xaxis . set_visible ( False ) ax2 . patch . set_visible ( False ) return ax2