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

Skip to content

Commit 3e4318f

Browse files
authored
Merge pull request #19711 from meeseeksmachine/auto-backport-of-pr-19709-on-v3.4.x
Backport PR #19709 on branch v3.4.x (Fix arrow_guide.py typo)
2 parents bb72d72 + 0e0cc72 commit 3e4318f

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

examples/shapes_and_collections/arrow_guide.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
that behave differently when the data limits on a plot are changed. In general,
1010
points on a plot can either be fixed in "data space" or "display space".
1111
Something plotted in data space moves when the data limits are altered - an
12-
example would the points in a scatter plot. Something plotted in display space
13-
stays static when data limits are altered - an example would be a figure title
14-
or the axis labels.
12+
example would be the points in a scatter plot. Something plotted in display
13+
space stays static when data limits are altered - an example would be a
14+
figure title or the axis labels.
1515
1616
Arrows consist of a head (and possibly a tail) and a stem drawn between a
1717
start point and end point, called 'anchor points' from now on.
@@ -39,10 +39,9 @@
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
#
45-
# In this case we use `.patches.FancyArrowPatch`
44+
# In this case we use `.patches.FancyArrowPatch`.
4645
#
4746
# Note that when the axis limits are changed, the arrow shape stays the same,
4847
# but the anchor points move.
@@ -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),
@@ -90,10 +89,10 @@
9089
# Head shape and anchor points fixed in data space
9190
# ------------------------------------------------
9291
#
93-
# In this case we use `.patches.Arrow`
92+
# 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)