From b1afaa589ad53161e49ad3706b6270356ce46044 Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Sun, 14 Mar 2021 22:54:37 -0700 Subject: [PATCH] DOC: fix dx in Fancy Arrow --- examples/shapes_and_collections/arrow_guide.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/shapes_and_collections/arrow_guide.py b/examples/shapes_and_collections/arrow_guide.py index 239f30cb056b..6058d4278008 100644 --- a/examples/shapes_and_collections/arrow_guide.py +++ b/examples/shapes_and_collections/arrow_guide.py @@ -48,11 +48,11 @@ # but the anchor points move. fig, axs = plt.subplots(nrows=2) -arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy), +arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head), mutation_scale=100) axs[0].add_patch(arrow) -arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy), +arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head), mutation_scale=100) axs[1].add_patch(arrow) axs[1].set_xlim(0, 2) @@ -73,12 +73,12 @@ # stays the same. fig, axs = plt.subplots(nrows=2) -arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy), +arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head), mutation_scale=100, transform=axs[0].transAxes) axs[0].add_patch(arrow) -arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy), +arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head), mutation_scale=100, transform=axs[1].transAxes) axs[1].add_patch(arrow)