Bases: Patch
Connect two bboxes with a straight line.
Bbox
Bounding boxes to connect.
Corner of bbox1 and bbox2 to draw the line. Valid values are:
'upper right' : 1, 'upper left' : 2, 'lower left' : 3, 'lower right' : 4
loc2 is optional and defaults to loc1.
Patch properties for the line drawn. Valid arguments include:
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 | |
unknown | |
bool | |
| bool or None |
| |
| |
bool | |
Patch or (Path, Transform) or None | |
| color or None |
| color or None |
bool | |
str | |
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} | |
bool | |
| |
object | |
| {'-', '--', '-.', ':', '', (offset, on-off-seq), ...} |
| float or None |
bool | |
list of | |
None or bool or float or callable | |
bool | |
(scale: float, length: float, randomness: float) | |
bool or None | |
str | |
bool | |
float |
Construct a Path connecting corner loc1 of bbox1 to corner loc2 of bbox2, where parameters behave as documented as for the BboxConnector constructor.
Return the (x, y) coordinates of corner loc of bbox; parameters behave as documented for the BboxConnector constructor.
Return the path of this patch.
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 | |
| bool or None |
| |
| |
bool | |
Patch or (Path, Transform) or None | |
| color or None |
| color or None |
bool | |
str | |
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} | |
bool | |
| |
object | |
| {'-', '--', '-.', ':', '', (offset, on-off-seq), ...} |
| float or None |
bool | |
list of | |
None or bool or float or callable | |
bool | |
(scale: float, length: float, randomness: float) | |
bool or None | |
str | |
bool | |
float |
mpl_toolkits.axes_grid1.inset_locator.BboxConnector
© 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.BboxConnector.html