@@ -1262,6 +1262,16 @@ def __init__(self, offsetbox, xy,
1262
1262
(accessible as the ``patch`` attribute of the `.AnnotationBbox`).
1263
1263
If *frameon* is set to False, this patch is made invisible.
1264
1264
1265
+ annotation_clip: bool or None, default: None
1266
+ Whether to clip (i.e. not draw) the annotation when the annotation
1267
+ point *xy* is outside the axes area.
1268
+
1269
+ - If *True*, the annotation will be clipped when *xy* is outside
1270
+ the axes.
1271
+ - If *False*, the annotation will always be drawn.
1272
+ - If *None*, the annotation will be clipped when *xy* is outside
1273
+ the axes and *xycoords* is 'data'.
1274
+
1265
1275
pad : float, default: 0.4
1266
1276
Padding around the offsetbox.
1267
1277
@@ -1270,8 +1280,25 @@ def __init__(self, offsetbox, xy,
1270
1280
the offset box w.r.t. the *boxcoords*.
1271
1281
The lower-left corner is (0, 0) and upper-right corner is (1, 1).
1272
1282
1283
+ bboxprops : dict, optional
1284
+ A dictionary of properties to set for the annotation bounding box,
1285
+ for example *boxstyle* and *alpha*. See `.FancyBboxPatch` for
1286
+ details.
1287
+
1288
+ arrowprops: dict, optional
1289
+ Arrow properties, see `.Annotation` for description.
1290
+
1291
+ fontsize: float or str, optional
1292
+ Translated to points and passed as *mutation_scale* into
1293
+ `.FancyBboxPatch` to scale attributes of the box style (e.g. pad
1294
+ or rounding_size). The name is chosen in analogy to `.Text` where
1295
+ *fontsize* defines the mutation scale as well. If not given,
1296
+ :rc:`legend.fontsize` is used. See `.Text.set_fontsize` for valid
1297
+ values.
1298
+
1273
1299
**kwargs
1274
- Other parameters are identical to `.Annotation`.
1300
+ Other `AnnotationBbox` properties. See `.AnnotationBbox.set` for
1301
+ a list.
1275
1302
"""
1276
1303
1277
1304
martist .Artist .__init__ (self )
0 commit comments