docstr: An anchored container with a fixed size and fillable `.DrawingArea`.
  
  Artists added to the *drawing_area* will have their coordinates
  interpreted as pixels. Any transformations set on the artists will be
  overridden.
  
  Parameters
  ----------
  width, height : float
      Width and height of the container, in pixels.
  xdescent, ydescent : float
      Descent of the container in the x- and y- direction, in pixels.
  loc : str
      Location of this artist.  Valid locations are
      'upper left', 'upper center', 'upper right',
      'center left', 'center', 'center right',
      'lower left', 'lower center', 'lower right'.
      For backward compatibility, numeric values are accepted as well.
      See the parameter *loc* of `.Legend` for details.
  pad : float, default: 0.4
      Padding around the child objects, in fraction of the font size.
  borderpad : float, default: 0.5
      Border padding, in fraction of the font size.
  prop : `~matplotlib.font_manager.FontProperties`, optional
      Font property used as a reference for paddings.
  frameon : bool, default: True
      If True, draw a box around this artist.
  **kwargs
      Keyword arguments forwarded to `.AnchoredOffsetbox`.
  
  Attributes
  ----------
  drawing_area : `~matplotlib.offsetbox.DrawingArea`
      A container for artists to display.
  
  Examples
  --------
  To display blue and red circles of different sizes in the upper right
  of an Axes *ax*:
  
  >>> ada = AnchoredDrawingArea(20, 20, 0, 0,
  ...                           loc='upper right', frameon=False)
  >>> ada.drawing_area.add_artist(Circle((10, 10), 10, fc="b"))
  >>> ada.drawing_area.add_artist(Circle((30, 10), 5, fc="r"))
  >>> ax.add_artist(ada)
docstr_tok: ["An","anchored","container","with","a","fixed","size","and","fillable","`",".DrawingArea","`",".","Artists","added","to","the","*","drawing_area","*","will","have","their","coordinates","interpreted","as","pixels",".","Any","transformations","set","on","the","artists","will","be","overridden",".","Parameters","--","--","--","--","--","width",",","height",":","float","Width","and","height","of","the","container",",","in","pixels",".","xdescent",",","ydescent",":","float","Descent","of","the","container","in","the","x-","and","y-","direction",",","in","pixels",".","loc",":","str","Location","of","this","artist",".","Valid","locations","are","'upper","left","'",",","'upper","center","'",",","'upper","right","'",",","'center","left","'",",","'center","'",",","'center","right","'",",","'lower","left","'",",","'lower","center","'",",","'lower","right","'",".","For","backward","compatibility",",","numeric","values","are","accepted","as","well",".","See","the","parameter","*","loc","*","of","`",".Legend","`","for","details",".","pad",":","float",",","default",":","0.4","Padding","around","the","child","objects",",","in","fraction","of","the","font","size",".","borderpad",":","float",",","default",":","0.5","Border","padding",",","in","fraction","of","the","font","size",".","prop",":","`","~matplotlib.font_manager.FontProperties","`",",","optional","Font","property","used","as","a","reference","for","paddings",".","frameon",":","bool",",","default",":","True","If","True",",","draw","a","box","around","this","artist",".","*","*","kwargs","Keyword","arguments","forwarded","to","`",".AnchoredOffsetbox","`",".","Attributes","--","--","--","--","--","drawing_area",":","`","~matplotlib.offsetbox.DrawingArea","`","A","container","for","artists","to","display",".","Examples","--","--","--","--","To","display","blue","and","red","circles","of","different","sizes","in","the","upper","right","of","an","Axes","*","ax","*",":",">",">",">","ada","=","AnchoredDrawingArea","(","20",",","20",",","0",",","0",",","...","loc='upper","right","'",",","frameon=False",")",">",">",">","ada.drawing_area.add_artist","(","Circle","(","(","10",",","10",")",",","10",",","fc=","''","b","''",")",")",">",">",">","ada.drawing_area.add_artist","(","Circle","(","(","30",",","10",")",",","5",",","fc=","''","r","''",")",")",">",">",">","ax.add_artist","(","ada",")"]
code: def __init__(
      self,
      width,
      height,
      xdescent,
      ydescent,
      loc,
      pad=0.4,
      borderpad=0.5,
      prop=None,
      frameon=True,
      **kwargs,
  ):
      """
      An anchored container with a fixed size and fillable `.DrawingArea`.
  
      Artists added to the *drawing_area* will have their coordinates
      interpreted as pixels. Any transformations set on the artists will be
      overridden.
  
      Parameters
      ----------
      width, height : float
          Width and height of the container, in pixels.
      xdescent, ydescent : float
          Descent of the container in the x- and y- direction, in pixels.
      loc : str
          Location of this artist.  Valid locations are
          'upper left', 'upper center', 'upper right',
          'center left', 'center', 'center right',
          'lower left', 'lower center', 'lower right'.
          For backward compatibility, numeric values are accepted as well.
          See the parameter *loc* of `.Legend` for details.
      pad : float, default: 0.4
          Padding around the child objects, in fraction of the font size.
      borderpad : float, default: 0.5
          Border padding, in fraction of the font size.
      prop : `~matplotlib.font_manager.FontProperties`, optional
          Font property used as a reference for paddings.
      frameon : bool, default: True
          If True, draw a box around this artist.
      **kwargs
          Keyword arguments forwarded to `.AnchoredOffsetbox`.
  
      Attributes
      ----------
      drawing_area : `~matplotlib.offsetbox.DrawingArea`
          A container for artists to display.
  
      Examples
      --------
      To display blue and red circles of different sizes in the upper right
      of an Axes *ax*:
  
      >>> ada = AnchoredDrawingArea(20, 20, 0, 0,
      ...                           loc='upper right', frameon=False)
      >>> ada.drawing_area.add_artist(Circle((10, 10), 10, fc="b"))
      >>> ada.drawing_area.add_artist(Circle((30, 10), 5, fc="r"))
      >>> ax.add_artist(ada)
      """
      self.da = DrawingArea(width, height, xdescent, ydescent)
      self.drawing_area = self.da
  
      super().__init__(
          loc,
          pad=pad,
          borderpad=borderpad,
          child=self.da,
          prop=None,
          frameon=frameon,
          **kwargs,
      )
  
file_path: matplotlib/lib/mpl_toolkits/axes_grid1/anchored_artists.py
imports: from matplotlib import _api, transforms
  from matplotlib.offsetbox import AnchoredOffsetbox, AuxTransformBox, DrawingArea, TextArea, VPacker
  from matplotlib.patches import Rectangle, Ellipse, ArrowStyle, FancyArrowPatch, PathPatch
  from matplotlib.text import TextPath
label_desc: Use image node_id 1 to create a new AnchoredDrawingArea object from inherited base classes: AnchoredOffsetbox with example: obj = AnchoredDrawingArea(width, height, xdescent, ydescent, loc, pad, borderpad, prop, frameon)