|
47 | 47 | # but the anchor points move.
|
48 | 48 |
|
49 | 49 | fig, axs = plt.subplots(nrows=2)
|
50 |
| -arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy), |
| 50 | +arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head), |
51 | 51 | mutation_scale=100)
|
52 | 52 | axs[0].add_patch(arrow)
|
53 | 53 |
|
54 |
| -arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy), |
| 54 | +arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head), |
55 | 55 | mutation_scale=100)
|
56 | 56 | axs[1].add_patch(arrow)
|
57 | 57 | axs[1].set_xlim(0, 2)
|
|
72 | 72 | # stay the same.
|
73 | 73 |
|
74 | 74 | fig, axs = plt.subplots(nrows=2)
|
75 |
| -arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy), |
| 75 | +arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head), |
76 | 76 | mutation_scale=100,
|
77 | 77 | transform=axs[0].transAxes)
|
78 | 78 | axs[0].add_patch(arrow)
|
79 | 79 |
|
80 |
| -arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (dx, dy), |
| 80 | +arrow = mpatches.FancyArrowPatch((x_tail, y_tail), (x_head, y_head), |
81 | 81 | mutation_scale=100,
|
82 | 82 | transform=axs[1].transAxes)
|
83 | 83 | axs[1].add_patch(arrow)
|
|
0 commit comments