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

Skip to content

Commit 200ebe1

Browse files
authored
Merge pull request #19707 from jklymak/doc-arrow-more
DOC: fix dx in Arrow guide
2 parents 1c107a4 + b1afaa5 commit 200ebe1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/shapes_and_collections/arrow_guide.py

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

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

55-
arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy),
55+
arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head),
5656
mutation_scale=100)
5757
axs[1].add_patch(arrow)
5858
axs[1].set_xlim(0, 2)
@@ -73,12 +73,12 @@
7373
# stays the same.
7474

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

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

0 commit comments

Comments
 (0)