From e90087be8f61eedbba760a793491d447d73054ae Mon Sep 17 00:00:00 2001 From: iwmq <19398624+iwmq@users.noreply.github.com> Date: Sat, 12 Oct 2019 12:20:27 +0800 Subject: [PATCH 1/2] Change the xy parameter of Rectangle to cover imshow()'s vertical axis direction. --- lib/matplotlib/patches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index d7d1290f4a4b..9fcb8be070c0 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -707,7 +707,7 @@ def __init__(self, xy, width, height, angle=0.0, **kwargs): Parameters ---------- xy : (float, float) - The bottom and left rectangle coordinates + The starting coordinates. For most data plotting functions, it is (left, bottom). For imshow(), it is (left, top). width : float Rectangle width height : float From 5ac007e7d0931ca8f247024dfd91ba2afa2003c0 Mon Sep 17 00:00:00 2001 From: iwmq <19398624+iwmq@users.noreply.github.com> Date: Thu, 17 Oct 2019 14:20:56 +0800 Subject: [PATCH 2/2] Change the description of the Rectangle's xy parameter. --- lib/matplotlib/patches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index 836ec21446e6..4be07c087278 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -707,7 +707,7 @@ def __init__(self, xy, width, height, angle=0.0, **kwargs): Parameters ---------- xy : (float, float) - The starting coordinates. For most data plotting functions, it is (left, bottom). For imshow(), it is (left, top). + The starting coordinates width : float Rectangle width height : float