FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Backport PR #24643 on branch v3.6.x (DOC: annotation coords are not floats) by meeseeksmachine · Pull Request #24647 · matplotlib/matplotlib · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
8 changes: 4 additions & 4 deletions lib/matplotlib/offsetbox.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1298,13 +1298,13 @@ def __init__(self, offsetbox, xy,
The position *(x, y)* to place the text at. The coordinate system
is determined by *boxcoords*.

xycoords : str or `.Artist` or `.Transform` or callable or \
(float, float), default: 'data'
xycoords : single or two-tuple of str or `.Artist` or `.Transform` or \
callable, default: 'data'
The coordinate system that *xy* is given in. See the parameter
*xycoords* in `.Annotation` for a detailed description.

boxcoords : str or `.Artist` or `.Transform` or callable or \
(float, float), default: value of *xycoords*
boxcoords : single or two-tuple of str or `.Artist` or `.Transform` \
or callable, default: value of *xycoords*
The coordinate system that *xybox* is given in. See the parameter
*textcoords* in `.Annotation` for a detailed description.

Expand Down
8 changes: 4 additions & 4 deletions lib/matplotlib/text.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1660,8 +1660,8 @@ def __init__(self, text, xy,
The position *(x, y)* to place the text at. The coordinate system
is determined by *textcoords*.

xycoords : str or `.Artist` or `.Transform` or callable or \
(float, float), default: 'data'
xycoords : single or two-tuple of str or `.Artist` or `.Transform` or \
callable, default: 'data'

The coordinate system that *xy* is given in. The following types
of values are supported:
Expand Down Expand Up @@ -1713,8 +1713,8 @@ def transform(renderer) -> Transform

See :ref:`plotting-guide-annotation` for more details.

textcoords : str or `.Artist` or `.Transform` or callable or \
(float, float), default: value of *xycoords*
textcoords : single or two-tuple of str or `.Artist` or `.Transform` \
or callable, default: value of *xycoords*
The coordinate system that *xytext* is given in.

All *xycoords* values are valid as well as the following
Expand Down

Back | FazBrowse Home | New Git URL