class_docstr: Base class for subplots, which are :class:`Axes` instances with
  additional methods to facilitate generating and manipulating a set
  of :class:`Axes` within a figure.
docstr: Make a twinx axes of self. This is used for twinx and twiny.
docstr_tok: ["Make","a","twinx","axes","of","self",".","This","is","used","for","twinx","and","twiny","."]
code: def _make_twin_axes(self, *kl, **kwargs):
      """
      Make a twinx axes of self. This is used for twinx and twiny.
      """
      from matplotlib.projections import process_projection_requirements
  
      if "sharex" in kwargs and "sharey" in kwargs:
          # The following line is added in v2.2 to avoid breaking Seaborn,
          # which currently uses this internal API.
          if (
              kwargs["sharex"] is not self
              and kwargs["sharey"] is not self
          ):
              raise ValueError("Twinned Axes may share only one axis.")
      kl = (self.get_subplotspec(),) + kl
      projection_class, kwargs, key = process_projection_requirements(
          self.figure, *kl, **kwargs
      )
  
      ax2 = subplot_class_factory(projection_class)(
          self.figure, *kl, **kwargs
      )
      self.figure.add_subplot(ax2)
      self.set_adjustable("datalim")
      ax2.set_adjustable("datalim")
  
      if self._layoutbox is not None and ax2._layoutbox is not None:
          # make the layout boxes be explicitly the same
          ax2._layoutbox.constrain_same(self._layoutbox)
          ax2._poslayoutbox.constrain_same(self._poslayoutbox)
  
      self._twinned_axes.join(self, ax2)
      return ax2
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from six.moves import map
  from matplotlib.gridspec import GridSpec, SubplotSpec
  from matplotlib import docstring
  import matplotlib.artist
  from matplotlib.axes._axes import Axes
  import matplotlib._layoutbox
  import warnings
  from matplotlib.cbook import mplDeprecation
label_desc: Use image node_id 13 for calling the SubplotBase obj's underlying member method code with example usage: obj._make_twin_axes() and returns: ax2