class_docstr: Divider based on the preexisting axes.
class_docstr_tok: ["Divider","based","on","the","preexisting","axes","."]
docstr: Parameters
  ----------
  axes : :class:`~matplotlib.axes.Axes`
  xref
  yref
code: def __init__(self, axes, xref=None, yref=None):
      """
      Parameters
      ----------
      axes : :class:`~matplotlib.axes.Axes`
      xref
      yref
      """
      self._axes = axes
      if xref is None:
          self._xref = Size.AxesX(axes)
      else:
          self._xref = xref
      if yref is None:
          self._yref = Size.AxesY(axes)
      else:
          self._yref = yref
  
      super().__init__(
          fig=axes.get_figure(),
          pos=None,
          horizontal=[self._xref],
          vertical=[self._yref],
          aspect=None,
          anchor="C",
      )
  
imports: import functools
  import numpy
  import matplotlib
  from matplotlib import _api
  from matplotlib.gridspec import SubplotSpec
  import matplotlib.transforms
  from .None import axes_size
label_desc: Use image node_id 1 to create a new AxesDivider object from inherited base classes: Divider with example: obj = AxesDivider(axes, xref, yref)