class_docstr: An Axes positioning class.
  
  The divider is initialized with lists of horizontal and vertical sizes
  (:mod:`mpl_toolkits.axes_grid1.axes_size`) based on which a given
  rectangular area will be divided.
  
  The `new_locator` method then creates a callable object
  that can be used as the *axes_locator* of the axes.
class_docstr_tok: ["An","Axes","positioning","class",".","The","divider","is","initialized","with","lists","of","horizontal","and","vertical","sizes","(",":","mod",":","`","mpl_toolkits.axes_grid1.axes_size","`",")","based","on","which","a","given","rectangular","area","will","be","divided",".","The","`","new_locator","`","method","then","creates","a","callable","object","that","can","be","used","as","the","*","axes_locator","*","of","the","axes","."]
docstr: Parameters
  ----------
  fig : Figure
  pos : tuple of 4 floats
      Position of the rectangle that will be divided.
  horizontal : list of :mod:`~mpl_toolkits.axes_grid1.axes_size`
      Sizes for horizontal division.
  vertical : list of :mod:`~mpl_toolkits.axes_grid1.axes_size`
      Sizes for vertical division.
  aspect : bool, optional
      Whether overall rectangular area is reduced so that the relative
      part of the horizontal and vertical scales have the same scale.
  anchor : (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', 'N', 'NW', 'W'}, default: 'C'
      Placement of the reduced rectangle, when *aspect* is True.
docstr_tok: ["Parameters","--","--","--","--","--","fig",":","Figure","pos",":","tuple","of","4","floats","Position","of","the","rectangle","that","will","be","divided",".","horizontal",":","list","of",":","mod",":","`","~mpl_toolkits.axes_grid1.axes_size","`","Sizes","for","horizontal","division",".","vertical",":","list","of",":","mod",":","`","~mpl_toolkits.axes_grid1.axes_size","`","Sizes","for","vertical","division",".","aspect",":","bool",",","optional","Whether","overall","rectangular","area","is","reduced","so","that","the","relative","part","of","the","horizontal","and","vertical","scales","have","the","same","scale",".","anchor",":","(","float",",","float",")","or","{","'","C","'",",","'SW","'",",","'S","'",",","'SE","'",",","'","E","'",",","'NE","'",",","'N","'",",","'NW","'",",","'","W","'","}",",","default",":","'","C'","Placement","of","the","reduced","rectangle",",","when","*","aspect","*","is","True","."]
code: def __init__(
      self, fig, pos, horizontal, vertical, aspect=None, anchor="C"
  ):
      """
          Parameters
          ----------
          fig : Figure
          pos : tuple of 4 floats
              Position of the rectangle that will be divided.
          horizontal : list of :mod:`~mpl_toolkits.axes_grid1.axes_size`
              Sizes for horizontal division.
          vertical : list of :mod:`~mpl_toolkits.axes_grid1.axes_size`
              Sizes for vertical division.
          aspect : bool, optional
              Whether overall rectangular area is reduced so that the relative
              part of the horizontal and vertical scales have the same scale.
          anchor : (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', 'N', \
  'NW', 'W'}, default: 'C'
              Placement of the reduced rectangle, when *aspect* is True.
          """
  
      self._fig = fig
      self._pos = pos
      self._horizontal = horizontal
      self._vertical = vertical
      self._anchor = anchor
      self.set_anchor(anchor)
      self._aspect = aspect
      self._xrefindex = 0
      self._yrefindex = 0
      self._locator = None
  
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 Divider object  with example: obj = Divider(fig, pos, horizontal, vertical, aspect, anchor)