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

Skip to content

Commit 5b59bbb

Browse files
dstansbymeeseeksmachine
authored andcommitted
Backport PR #19707: DOC: fix dx in Arrow guide
1 parent 3e4318f commit 5b59bbb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

examples/shapes_and_collections/arrow_guide.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
# but the anchor points move.
4848

4949
fig, axs = plt.subplots(nrows=2)
50-
arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy),
50+
arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head),
5151
mutation_scale=100)
5252
axs[0].add_patch(arrow)
5353

54-
arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy),
54+
arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head),
5555
mutation_scale=100)
5656
axs[1].add_patch(arrow)
5757
axs[1].set_xlim(0, 2)
@@ -72,12 +72,12 @@
7272
# stay the same.
7373

7474
fig, axs = plt.subplots(nrows=2)
75-
arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy),
75+
arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head),
7676
mutation_scale=100,
7777
transform=axs[0].transAxes)
7878
axs[0].add_patch(arrow)
7979

80-
arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy),
80+
arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head),
8181
mutation_scale=100,
8282
transform=axs[1].transAxes)
8383
axs[1].add_patch(arrow)

0 commit comments

Comments
 (0)