Skip to content

Commit 97e2184

Browse files
committed
DOC: annotation coords are not floats
1 parent ab3d63d commit 97e2184

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/matplotlib/offsetbox.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1242,13 +1242,13 @@ def __init__(self, offsetbox, xy,
12421242
The position *(x, y)* to place the text at. The coordinate system
12431243
is determined by *boxcoords*.
12441244
1245-
xycoords : str or `.Artist` or `.Transform` or callable or \
1246-
(float, float), default: 'data'
1245+
xycoords : single or two-tuple of str or `.Artist` or `.Transform` or \
1246+
callable, default: 'data'
12471247
The coordinate system that *xy* is given in. See the parameter
12481248
*xycoords* in `.Annotation` for a detailed description.
12491249
1250-
boxcoords : str or `.Artist` or `.Transform` or callable or \
1251-
(float, float), default: value of *xycoords*
1250+
boxcoords : single or two-tuple of str or `.Artist` or `.Transform` \
1251+
or callable, default: value of *xycoords*
12521252
The coordinate system that *xybox* is given in. See the parameter
12531253
*textcoords* in `.Annotation` for a detailed description.
12541254

lib/matplotlib/text.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1698,8 +1698,8 @@ def __init__(self, text, xy,
16981698
The position *(x, y)* to place the text at. The coordinate system
16991699
is determined by *textcoords*.
17001700
1701-
xycoords : str or `.Artist` or `.Transform` or callable or \
1702-
(float, float), default: 'data'
1701+
xycoords : single or two-tuple of str or `.Artist` or `.Transform` or \
1702+
callable, default: 'data'
17031703
17041704
The coordinate system that *xy* is given in. The following types
17051705
of values are supported:
@@ -1751,8 +1751,8 @@ def transform(renderer) -> Transform
17511751
17521752
See :ref:`plotting-guide-annotation` for more details.
17531753
1754-
textcoords : str or `.Artist` or `.Transform` or callable or \
1755-
(float, float), default: value of *xycoords*
1754+
textcoords : single or two-tuple of str or `.Artist` or `.Transform` \
1755+
or callable, default: value of *xycoords*
17561756
The coordinate system that *xytext* is given in.
17571757
17581758
All *xycoords* values are valid as well as the following

0 commit comments

Comments
 (0)