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

Skip to content

Commit 0a60096

Browse files
authored
Update arrow_guide.py
to remove redundancy and correct typos
1 parent b22d05f commit 0a60096

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

examples/shapes_and_collections/arrow_guide.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
# -----------------------------------------------------------------------
4040
#
4141
# This is useful if you are annotating a plot, and don't want the arrow to
42-
# to change shape or position if you pan or scale the plot. Note that when
43-
# the axis limits change
42+
# to change shape or position if you pan or scale the plot.
4443
#
4544
# In this case we use `.patches.FancyArrowPatch`
4645
#
@@ -63,14 +62,14 @@
6362
# ---------------------------------------------------
6463
#
6564
# This is useful if you are annotating a plot, and don't want the arrow to
66-
# to change shape or position if you pan or scale the plot.
65+
# change shape or position if you pan or scale the plot.
6766
#
6867
# In this case we use `.patches.FancyArrowPatch`, and pass the keyword argument
6968
# ``transform=ax.transAxes`` where ``ax`` is the axes we are adding the patch
7069
# to.
7170
#
7271
# Note that when the axis limits are changed, the arrow shape and location
73-
# stays the same.
72+
# stay the same.
7473

7574
fig, axs = plt.subplots(nrows=2)
7675
arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy),
@@ -93,7 +92,7 @@
9392
# In this case we use `.patches.Arrow`
9493
#
9594
# Note that when the axis limits are changed, the arrow shape and location
96-
# changes.
95+
# change.
9796

9897
fig, axs = plt.subplots(nrows=2)
9998

0 commit comments

Comments
 (0)