docstr: Draw an anchored ellipse of a given size.
  
  Parameters
  ----------
  transform : `~matplotlib.transforms.Transform`
      The transformation object for the coordinate system in use, i.e.,
      :attr:`matplotlib.axes.Axes.transData`.
  width, height : float
      Width and height of the ellipse, given in coordinates of
      *transform*.
  angle : float
      Rotation of the ellipse, in degrees, anti-clockwise.
  loc : str
      Location of the ellipse.  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.1
      Padding around the ellipse, in fraction of the font size.
  borderpad : float, default: 0.1
      Border padding, in fraction of the font size.
  frameon : bool, default: True
      If True, draw a box around the ellipse.
  prop : `~matplotlib.font_manager.FontProperties`, optional
      Font property used as a reference for paddings.
  **kwargs
      Keyword arguments forwarded to `.AnchoredOffsetbox`.
  
  Attributes
  ----------
  ellipse : `~matplotlib.patches.Ellipse`
      Ellipse patch drawn.
docstr_tok: ["Draw","an","anchored","ellipse","of","a","given","size",".","Parameters","--","--","--","--","--","transform",":","`","~matplotlib.transforms.Transform","`","The","transformation","object","for","the","coordinate","system","in","use",",","i.e.",",",":","attr",":","`","matplotlib.axes.Axes.transData","`",".","width",",","height",":","float","Width","and","height","of","the","ellipse",",","given","in","coordinates","of","*","transform","*",".","angle",":","float","Rotation","of","the","ellipse",",","in","degrees",",","anti-clockwise",".","loc",":","str","Location","of","the","ellipse",".","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.1","Padding","around","the","ellipse",",","in","fraction","of","the","font","size",".","borderpad",":","float",",","default",":","0.1","Border","padding",",","in","fraction","of","the","font","size",".","frameon",":","bool",",","default",":","True","If","True",",","draw","a","box","around","the","ellipse",".","prop",":","`","~matplotlib.font_manager.FontProperties","`",",","optional","Font","property","used","as","a","reference","for","paddings",".","*","*","kwargs","Keyword","arguments","forwarded","to","`",".AnchoredOffsetbox","`",".","Attributes","--","--","--","--","--","ellipse",":","`","~matplotlib.patches.Ellipse","`","Ellipse","patch","drawn","."]
code: def __init__(
      self,
      transform,
      width,
      height,
      angle,
      loc,
      pad=0.1,
      borderpad=0.1,
      prop=None,
      frameon=True,
      **kwargs,
  ):
      """
      Draw an anchored ellipse of a given size.
  
      Parameters
      ----------
      transform : `~matplotlib.transforms.Transform`
          The transformation object for the coordinate system in use, i.e.,
          :attr:`matplotlib.axes.Axes.transData`.
      width, height : float
          Width and height of the ellipse, given in coordinates of
          *transform*.
      angle : float
          Rotation of the ellipse, in degrees, anti-clockwise.
      loc : str
          Location of the ellipse.  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.1
          Padding around the ellipse, in fraction of the font size.
      borderpad : float, default: 0.1
          Border padding, in fraction of the font size.
      frameon : bool, default: True
          If True, draw a box around the ellipse.
      prop : `~matplotlib.font_manager.FontProperties`, optional
          Font property used as a reference for paddings.
      **kwargs
          Keyword arguments forwarded to `.AnchoredOffsetbox`.
  
      Attributes
      ----------
      ellipse : `~matplotlib.patches.Ellipse`
          Ellipse patch drawn.
      """
      self._box = AuxTransformBox(transform)
      self.ellipse = Ellipse((0, 0), width, height, angle=angle)
      self._box.add_artist(self.ellipse)
  
      super().__init__(
          loc,
          pad=pad,
          borderpad=borderpad,
          child=self._box,
          prop=prop,
          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 AnchoredEllipse object from inherited base classes: AnchoredOffsetbox with example: obj = AnchoredEllipse(transform, width, height, angle, loc, pad, borderpad, prop, frameon)