MCPcopy
hub / github.com/matplotlib/matplotlib / __init__

Method __init__

lib/matplotlib/offsetbox.py:1306–1411  ·  view source on GitHub ↗

Parameters ---------- offsetbox : `OffsetBox` xy : (float, float) The point *(x, y)* to annotate. The coordinate system is determined by *xycoords*. xybox : (float, float), default: *xy* The position *(x, y)* to place the

(self, offsetbox, xy, xybox=None, xycoords='data', boxcoords=None, *,
                 frameon=True, pad=0.4,  # FancyBboxPatch boxstyle.
                 annotation_clip=None,
                 box_alignment=(0.5, 0.5),
                 bboxprops=None,
                 arrowprops=None,
                 fontsize=None,
                 **kwargs)

Source from the content-addressed store, hash-verified

1304
1305 @_docstring.interpd
1306 def __init__(self, offsetbox, xy, xybox=None, xycoords='data', boxcoords=None, *,
1307 frameon=True, pad=0.4, # FancyBboxPatch boxstyle.
1308 annotation_clip=None,
1309 box_alignment=(0.5, 0.5),
1310 bboxprops=None,
1311 arrowprops=None,
1312 fontsize=None,
1313 **kwargs):
1314 """
1315 Parameters
1316 ----------
1317 offsetbox : `OffsetBox`
1318
1319 xy : (float, float)
1320 The point *(x, y)* to annotate. The coordinate system is determined
1321 by *xycoords*.
1322
1323 xybox : (float, float), default: *xy*
1324 The position *(x, y)* to place the text at. The coordinate system
1325 is determined by *boxcoords*.
1326
1327 xycoords : single or two-tuple of str or `.Artist` or `.Transform` or \
1328callable, default: 'data'
1329 The coordinate system that *xy* is given in. See the parameter
1330 *xycoords* in `.Annotation` for a detailed description.
1331
1332 boxcoords : single or two-tuple of str or `.Artist` or `.Transform` \
1333or callable, default: value of *xycoords*
1334 The coordinate system that *xybox* is given in. See the parameter
1335 *textcoords* in `.Annotation` for a detailed description.
1336
1337 frameon : bool, default: True
1338 By default, the text is surrounded by a white `.FancyBboxPatch`
1339 (accessible as the ``patch`` attribute of the `.AnnotationBbox`).
1340 If *frameon* is set to False, this patch is made invisible.
1341
1342 annotation_clip: bool or None, default: None
1343 Whether to clip (i.e. not draw) the annotation when the annotation
1344 point *xy* is outside the Axes area.
1345
1346 - If *True*, the annotation will be clipped when *xy* is outside
1347 the Axes.
1348 - If *False*, the annotation will always be drawn.
1349 - If *None*, the annotation will be clipped when *xy* is outside
1350 the Axes and *xycoords* is 'data'.
1351
1352 pad : float, default: 0.4
1353 Padding around the offsetbox.
1354
1355 box_alignment : (float, float)
1356 A tuple of two floats for a vertical and horizontal alignment of
1357 the offset box w.r.t. the *boxcoords*.
1358 The lower-left corner is (0, 0) and upper-right corner is (1, 1).
1359
1360 bboxprops : dict, optional
1361 A dictionary of properties to set for the annotation bounding box,
1362 for example *boxstyle* and *alpha*. See `.FancyBboxPatch` for
1363 details.

Callers

nothing calls this directly

Calls 9

set_fontsizeMethod · 0.95
FancyArrowPatchClass · 0.90
FancyBboxPatchClass · 0.90
set_boxstyleMethod · 0.80
_internal_updateMethod · 0.80
__init__Method · 0.45
copyMethod · 0.45
popMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected