class_docstr: Place a legend on the axes at location loc.
class_docstr_tok: ["Place","a","legend","on","the","axes","at","location","loc","."]
docstr: Place the *bbox* inside the *parentbbox* according to a given
  location code. Return the (x,y) coordinate of the bbox.
  
  - loc: a location code in range(1, 11).
    This corresponds to the possible values for self._loc, excluding
    "best".
  
  - bbox: bbox to be placed, display coordinate units.
  - parentbbox: a parent box which will contain the bbox. In
      display coordinates.
docstr_tok: ["Place","the","*","bbox","*","inside","the","*","parentbbox","*","according","to","a","given","location","code",".","Return","the","(","x",",","y",")","coordinate","of","the","bbox",".","-","loc",":","a","location","code","in","range","(","1",",","11",")",".","This","corresponds","to","the","possible","values","for","self._loc",",","excluding","``","best","''",".","-","bbox",":","bbox","to","be","placed",",","display","coordinate","units",".","-","parentbbox",":","a","parent","box","which","will","contain","the","bbox",".","In","display","coordinates","."]
code: def _get_anchored_bbox(self, loc, bbox, parentbbox, renderer):
      """
      Place the *bbox* inside the *parentbbox* according to a given
      location code. Return the (x,y) coordinate of the bbox.
  
      - loc: a location code in range(1, 11).
        This corresponds to the possible values for self._loc, excluding
        "best".
  
      - bbox: bbox to be placed, display coordinate units.
      - parentbbox: a parent box which will contain the bbox. In
          display coordinates.
      """
      assert loc in range(1, 11)  # called only internally
  
      BEST, UR, UL, LL, LR, R, CL, CR, LC, UC, C = range(11)
  
      anchor_coefs = {
          UR: "NE",
          UL: "NW",
          LL: "SW",
          LR: "SE",
          R: "E",
          CL: "W",
          CR: "E",
          LC: "S",
          UC: "N",
          C: "C",
      }
  
      c = anchor_coefs[loc]
  
      fontsize = renderer.points_to_pixels(self._fontsize)
      container = parentbbox.padded(-(self.borderaxespad) * fontsize)
      anchored_box = bbox.anchored(c, container=container)
      return anchored_box.x0, anchored_box.y0
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import logging
  import warnings
  import numpy
  from matplotlib import rcParams
  from matplotlib import docstring
  from matplotlib.artist import Artist, allow_rasterization
  from matplotlib.cbook import silent_list, is_hashable
  import matplotlib.colors
  from matplotlib.font_manager import FontProperties
  from matplotlib.lines import Line2D
  from matplotlib.patches import Patch, Rectangle, Shadow, FancyBboxPatch
  from matplotlib.collections import LineCollection, RegularPolyCollection, CircleCollection, PathCollection, PolyCollection
  from matplotlib.transforms import Bbox, BboxBase, TransformedBbox
  from matplotlib.transforms import BboxTransformTo, BboxTransformFrom
  from matplotlib.offsetbox import HPacker, VPacker, TextArea, DrawingArea
  from matplotlib.offsetbox import DraggableOffsetBox
  from matplotlib.container import ErrorbarContainer, BarContainer, StemContainer
  from .None import legend_handler
label_desc: Use image node_id 29 for calling the Legend obj's underlying member method code with example usage: obj._get_anchored_bbox(loc, bbox, parentbbox, renderer) and returns: anchored_box,  anchored_box