From 030f847b1eb1eb367e7074a0c62a188e1b4d19c1 Mon Sep 17 00:00:00 2001 From: marbled-toast <69227427+marbled-toast@users.noreply.github.com> Date: Sat, 15 Jul 2023 18:12:42 +0000 Subject: [PATCH 1/2] update the doc string for fancyarrowpatch to link to annotate --- lib/matplotlib/patches.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index 98923abe4919..903f24691595 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -4059,7 +4059,9 @@ def get_bbox(self): class FancyArrowPatch(Patch): """ - A fancy arrow patch. It draws an arrow using the `ArrowStyle`. + A fancy arrow patch. It draws an arrow using the `ArrowStyle`. It is primarily used + by the `~axes.Axes.annotate` method. For most purposes, use the annotate method + for drawing arrows. The head and tail positions are fixed at the specified start and end points of the arrow, but the size and shape (in display coordinates) of the arrow From f6e3aaef4624c05a9e5c92dcbbb2ae922f1e6433 Mon Sep 17 00:00:00 2001 From: marbled-toast <69227427+marbled-toast@users.noreply.github.com> Date: Sat, 15 Jul 2023 13:21:51 -0500 Subject: [PATCH 2/2] Update lib/matplotlib/patches.py Co-authored-by: Elliott Sales de Andrade --- lib/matplotlib/patches.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index 903f24691595..8a242d18c675 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -4059,9 +4059,11 @@ def get_bbox(self): class FancyArrowPatch(Patch): """ - A fancy arrow patch. It draws an arrow using the `ArrowStyle`. It is primarily used - by the `~axes.Axes.annotate` method. For most purposes, use the annotate method - for drawing arrows. + A fancy arrow patch. + + It draws an arrow using the `ArrowStyle`. It is primarily used by the + `~.axes.Axes.annotate` method. For most purposes, use the annotate method for + drawing arrows. The head and tail positions are fixed at the specified start and end points of the arrow, but the size and shape (in display coordinates) of the arrow