@@ -1313,6 +1313,16 @@ def __init__(self, offsetbox, xy,
1313
1313
(accessible as the ``patch`` attribute of the `.AnnotationBbox`).
1314
1314
If *frameon* is set to False, this patch is made invisible.
1315
1315
1316
+ annotation_clip: bool or None, default: None
1317
+ Whether to clip (i.e. not draw) the annotation when the annotation
1318
+ point *xy* is outside the axes area.
1319
+
1320
+ - If *True*, the annotation will be clipped when *xy* is outside
1321
+ the axes.
1322
+ - If *False*, the annotation will always be drawn.
1323
+ - If *None*, the annotation will be clipped when *xy* is outside
1324
+ the axes and *xycoords* is 'data'.
1325
+
1316
1326
pad : float, default: 0.4
1317
1327
Padding around the offsetbox.
1318
1328
@@ -1321,8 +1331,25 @@ def __init__(self, offsetbox, xy,
1321
1331
the offset box w.r.t. the *boxcoords*.
1322
1332
The lower-left corner is (0, 0) and upper-right corner is (1, 1).
1323
1333
1334
+ bboxprops : dict, optional
1335
+ A dictionary of properties to set for the annotation bounding box,
1336
+ for example *boxstyle* and *alpha*. See `.FancyBboxPatch` for
1337
+ details.
1338
+
1339
+ arrowprops: dict, optional
1340
+ Arrow properties, see `.Annotation` for description.
1341
+
1342
+ fontsize: float or str, optional
1343
+ Translated to points and passed as *mutation_scale* into
1344
+ `.FancyBboxPatch` to scale attributes of the box style (e.g. pad
1345
+ or rounding_size). The name is chosen in analogy to `.Text` where
1346
+ *fontsize* defines the mutation scale as well. If not given,
1347
+ :rc:`legend.fontsize` is used. See `.Text.set_fontsize` for valid
1348
+ values.
1349
+
1324
1350
**kwargs
1325
- Other parameters are identical to `.Annotation`.
1351
+ Other `AnnotationBbox` properties. See `.AnnotationBbox.set` for
1352
+ a list.
1326
1353
"""
1327
1354
1328
1355
martist .Artist .__init__ (self )
0 commit comments