diff --git a/examples/shapes_and_collections/arrow_guide.py b/examples/shapes_and_collections/arrow_guide.py index 239f30cb056b..87823dfaa30e 100644 --- a/examples/shapes_and_collections/arrow_guide.py +++ b/examples/shapes_and_collections/arrow_guide.py @@ -9,9 +9,9 @@ that behave differently when the data limits on a plot are changed. In general, points on a plot can either be fixed in "data space" or "display space". Something plotted in data space moves when the data limits are altered - an -example would the points in a scatter plot. Something plotted in display space -stays static when data limits are altered - an example would be a figure title -or the axis labels. +example would be the points in a scatter plot. Something plotted in display +space stays static when data limits are altered - an example would be a +figure title or the axis labels. Arrows consist of a head (and possibly a tail) and a stem drawn between a start point and end point, called 'anchor points' from now on. @@ -39,10 +39,9 @@ # ----------------------------------------------------------------------- # # This is useful if you are annotating a plot, and don't want the arrow to -# to change shape or position if you pan or scale the plot. Note that when -# the axis limits change +# to change shape or position if you pan or scale the plot. # -# In this case we use `.patches.FancyArrowPatch` +# In this case we use `.patches.FancyArrowPatch`. # # Note that when the axis limits are changed, the arrow shape stays the same, # but the anchor points move. @@ -63,14 +62,14 @@ # --------------------------------------------------- # # This is useful if you are annotating a plot, and don't want the arrow to -# to change shape or position if you pan or scale the plot. +# change shape or position if you pan or scale the plot. # # In this case we use `.patches.FancyArrowPatch`, and pass the keyword argument # ``transform=ax.transAxes`` where ``ax`` is the axes we are adding the patch # to. # # Note that when the axis limits are changed, the arrow shape and location -# stays the same. +# stay the same. fig, axs = plt.subplots(nrows=2) arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy), @@ -90,10 +89,10 @@ # Head shape and anchor points fixed in data space # ------------------------------------------------ # -# In this case we use `.patches.Arrow` +# In this case we use `.patches.Arrow`. # # Note that when the axis limits are changed, the arrow shape and location -# changes. +# change. fig, axs = plt.subplots(nrows=2)