mpl.legend.Bbox.anchored

Bbox.anchored(c, container=None)

Return a copy of the Bbox, shifted to position c within a container.

c: may be either:

  • a sequence (cx, cy) where cx and cy range from 0 to 1, where 0 is left or bottom and 1 is right or top
  • a string: - ‘C’ for centered - ‘S’ for bottom-center - ‘SE’ for bottom-left - ‘E’ for left - etc.

Optional argument container is the box within which the Bbox is positioned; it defaults to the initial Bbox.