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

Skip to content

Commit 677a57c

Browse files
Change the description of Rectangle's xy parameter
matplotlib.patches.Rectangle's first parameter, xy, is previously only documented for data plotting functions in which xy means left and bottom coordinates. However, in imshow(), the vertical axis's direction is inverted, and xy means left and top coordinates. See #15401. In this PR, a fix is made to explain xy as starting coordinates so as to make it suitable for both cases Closes #15433 Taken things from #15433.
1 parent 622448d commit 677a57c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ def __init__(self, xy, width, height, angle=0.0, **kwargs):
720720
Parameters
721721
----------
722722
xy : (float, float)
723-
The bottom and left rectangle coordinates
723+
The anchor coordinates
724724
width : float
725725
Rectangle width
726726
height : float

0 commit comments

Comments
 (0)