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

Skip to content

Commit b4ee47e

Browse files
author
Pascal Bugnion
committed
Typo in "Annotation" docstring.
The "axes fraction" description in the table of values for 'xycoords' and 'textcoords' had a typo, suggesting that (0,1) represents the lower left corner of the figure when it is actually (0,0). I also removed what looked like an extraneous typo in the description of the "figure fraction" property. The corresponding table in the users guide was similarly updated.
1 parent f09ad97 commit b4ee47e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/users/annotations_intro.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ argument coordinate system
3030
==================== ====================================================
3131
'figure points' points from the lower left corner of the figure
3232
'figure pixels' pixels from the lower left corner of the figure
33-
'figure fraction' 0,0 is lower left of figure and 1,1 is upper, right
33+
'figure fraction' 0,0 is lower left of figure and 1,1 is upper right
3434
'axes points' points from lower left corner of axes
3535
'axes pixels' pixels from lower left corner of axes
36-
'axes fraction' 0,1 is lower left of axes and 1,1 is upper right
36+
'axes fraction' 0,0 is lower left of axes and 1,1 is upper right
3737
'data' use the axes data coordinate system
3838
==================== ====================================================
3939

lib/matplotlib/text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,10 +1777,10 @@ def __init__(self, s, xy,
17771777
================= ===================================================
17781778
'figure points' points from the lower left corner of the figure
17791779
'figure pixels' pixels from the lower left corner of the figure
1780-
'figure fraction' 0,0 is lower left of figure and 1,1 is upper, right
1780+
'figure fraction' 0,0 is lower left of figure and 1,1 is upper right
17811781
'axes points' points from lower left corner of axes
17821782
'axes pixels' pixels from lower left corner of axes
1783-
'axes fraction' 0,1 is lower left of axes and 1,1 is upper right
1783+
'axes fraction' 0,0 is lower left of axes and 1,1 is upper right
17841784
'data' use the coordinate system of the object being
17851785
annotated (default)
17861786
'offset points' Specify an offset (in points) from the *xy* value

0 commit comments

Comments
 (0)