Skip to content

Commit b21ba4d

Browse files
authored
Merge pull request matplotlib#24647 from meeseeksmachine/auto-backport-of-pr-24643-on-v3.6.x
Backport PR matplotlib#24643 on branch v3.6.x (DOC: annotation coords are not floats)
2 parents 9b1413d + 6e80d7c commit b21ba4d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/matplotlib/offsetbox.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,13 +1298,13 @@ def __init__(self, offsetbox, xy,
12981298
The position *(x, y)* to place the text at. The coordinate system
12991299
is determined by *boxcoords*.
13001300
1301-
xycoords : str or `.Artist` or `.Transform` or callable or \
1302-
(float, float), default: 'data'
1301+
xycoords : single or two-tuple of str or `.Artist` or `.Transform` or \
1302+
callable, default: 'data'
13031303
The coordinate system that *xy* is given in. See the parameter
13041304
*xycoords* in `.Annotation` for a detailed description.
13051305
1306-
boxcoords : str or `.Artist` or `.Transform` or callable or \
1307-
(float, float), default: value of *xycoords*
1306+
boxcoords : single or two-tuple of str or `.Artist` or `.Transform` \
1307+
or callable, default: value of *xycoords*
13081308
The coordinate system that *xybox* is given in. See the parameter
13091309
*textcoords* in `.Annotation` for a detailed description.
13101310

lib/matplotlib/text.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,8 +1660,8 @@ def __init__(self, text, xy,
16601660
The position *(x, y)* to place the text at. The coordinate system
16611661
is determined by *textcoords*.
16621662
1663-
xycoords : str or `.Artist` or `.Transform` or callable or \
1664-
(float, float), default: 'data'
1663+
xycoords : single or two-tuple of str or `.Artist` or `.Transform` or \
1664+
callable, default: 'data'
16651665
16661666
The coordinate system that *xy* is given in. The following types
16671667
of values are supported:
@@ -1713,8 +1713,8 @@ def transform(renderer) -> Transform
17131713
17141714
See :ref:`plotting-guide-annotation` for more details.
17151715
1716-
textcoords : str or `.Artist` or `.Transform` or callable or \
1717-
(float, float), default: value of *xycoords*
1716+
textcoords : single or two-tuple of str or `.Artist` or `.Transform` \
1717+
or callable, default: value of *xycoords*
17181718
The coordinate system that *xytext* is given in.
17191719
17201720
All *xycoords* values are valid as well as the following

0 commit comments

Comments
 (0)