Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23c33f2

Browse files
committed
DOC: annotation coords are not floats
1 parent ab3d63d commit 23c33f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/offsetbox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,12 +1243,12 @@ def __init__(self, offsetbox, xy,
12431243
is determined by *boxcoords*.
12441244
12451245
xycoords : str or `.Artist` or `.Transform` or callable or \
1246-
(float, float), default: 'data'
1246+
2-element tuple of these, default: 'data'
12471247
The coordinate system that *xy* is given in. See the parameter
12481248
*xycoords* in `.Annotation` for a detailed description.
12491249
12501250
boxcoords : str or `.Artist` or `.Transform` or callable or \
1251-
(float, float), default: value of *xycoords*
1251+
2-element tuple of these, 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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ def __init__(self, text, xy,
16991699
is determined by *textcoords*.
17001700
17011701
xycoords : str or `.Artist` or `.Transform` or callable or \
1702-
(float, float), default: 'data'
1702+
2-element tuple of these, default: 'data'
17031703
17041704
The coordinate system that *xy* is given in. The following types
17051705
of values are supported:
@@ -1752,7 +1752,7 @@ def transform(renderer) -> Transform
17521752
See :ref:`plotting-guide-annotation` for more details.
17531753
17541754
textcoords : str or `.Artist` or `.Transform` or callable or \
1755-
(float, float), default: value of *xycoords*
1755+
2-element tuple of these, 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)