Bases: matplotlib.offsetbox.AnchoredOffsetbox
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.
Call self as a function.
Update the location of children if necessary and draw them to the given renderer.
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 | |
scalar or None | |
bool | |
unknown | |
unknown | |
bool | |
Patch or (Path, Transform) or None | |
str | |
float | |
bool | |
object | |
(float, float) or callable | |
None or bool or float or callable | |
bool | |
(scale: float, length: float, randomness: float) | |
bool or None | |
str | |
bool | |
float | |
float |
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/mpl_toolkits.axes_grid1.inset_locator.AnchoredLocatorBase.html