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
  ----------
  anchor : (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', 'N', 'NW', 'W'}
      Either an (*x*, *y*) pair of relative coordinates (0 is left or
      bottom, 1 is right or top), 'C' (center), or a cardinal direction
      ('SW', southwest, is bottom left, etc.).
  
  See Also
  --------
  .Axes.set_anchor
docstr_tok: ["Parameters","--","--","--","--","--","anchor",":","(","float",",","float",")","or","{","'","C","'",",","'SW","'",",","'S","'",",","'SE","'",",","'","E","'",",","'NE","'",",","'N","'",",","'NW","'",",","'","W","'","}","Either","an","(","*","x","*",",","*","y","*",")","pair","of","relative","coordinates","(","0","is","left","or","bottom",",","1","is","right","or","top",")",",","'","C","'","(","center",")",",","or","a","cardinal","direction","(","'SW","'",",","southwest",",","is","bottom","left",",","etc.",")",".","See","Also","--","--","--","--",".Axes.set_anchor"]
code: def set_anchor(self, anchor):
      """
          Parameters
          ----------
          anchor : (float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', 'N', \
  'NW', 'W'}
              Either an (*x*, *y*) pair of relative coordinates (0 is left or
              bottom, 1 is right or top), 'C' (center), or a cardinal direction
              ('SW', southwest, is bottom left, etc.).
  
          See Also
          --------
          .Axes.set_anchor
          """
      if isinstance(anchor, str):
          _api.check_in_list(mtransforms.Bbox.coefs, anchor=anchor)
      elif not isinstance(anchor, (tuple, list)) or len(anchor) != 2:
          raise TypeError("anchor must be str or 2-tuple")
      self._anchor = anchor
  
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 6 for calling the Divider obj's underlying member method code with example usage: obj.set_anchor(anchor) without return types