|
48 | 48 | # but the anchor points move.
|
49 | 49 |
|
50 | 50 | 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), |
52 | 52 | mutation_scale=100)
|
53 | 53 | axs[0].add_patch(arrow)
|
54 | 54 |
|
55 |
| -arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy), |
| 55 | +arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head), |
56 | 56 | mutation_scale=100)
|
57 | 57 | axs[1].add_patch(arrow)
|
58 | 58 | axs[1].set_xlim(0, 2)
|
|
73 | 73 | # stays the same.
|
74 | 74 |
|
75 | 75 | 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), |
77 | 77 | mutation_scale=100,
|
78 | 78 | transform=axs[0].transAxes)
|
79 | 79 | axs[0].add_patch(arrow)
|
80 | 80 |
|
81 |
| -arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy), |
| 81 | +arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head), |
82 | 82 | mutation_scale=100,
|
83 | 83 | transform=axs[1].transAxes)
|
84 | 84 | axs[1].add_patch(arrow)
|
|
0 commit comments