Bases: AnchoredLocatorBase
The box location. 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.
Padding around the child as fraction of the fontsize.
Padding between the offsetbox frame and the bbox_to_anchor.
OffsetBox
The box that will be anchored.
FontProperties
This is only used as a reference for paddings. If not given, rcParams["legend.fontsize"] (default: 'medium') is used.
Whether to draw a frame around the box.
BboxBase, 2-tuple, or 4-tuple of floats
Box that is used to position the legend in conjunction with loc.
matplotlib.transforms.Transform
The transform for the bounding box (bbox_to_anchor).
All other parameters are passed on to OffsetBox.
See Legend for a detailed description of the anchoring mechanism.
Return the bbox of the offsetbox, ignoring parent offsets.
Set multiple properties at once.
Supported properties are
Property | Description |
|---|---|
a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array and two offsets from the bottom left corner of the image | |
scalar or None | |
bool | |
unknown | |
unknown | |
| |
bool | |
Patch or (Path, Transform) or None | |
str | |
float | |
bool | |
object | |
bool | |
(float, float) or callable | |
list of | |
None or bool or float or callable | |
bool | |
(scale: float, length: float, randomness: float) | |
bool or None | |
str | |
bool | |
float | |
float |
© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.axes_grid1.inset_locator.AnchoredZoomLocator.html