Skip to content

Commit efcca59

Browse files
Magnus Nordidahj
Magnus Nord
authored andcommitted
AnchoredDirectionArrows: add test which uses many of the arguments
1 parent e200c44 commit efcca59

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lib/mpl_toolkits/tests/test_axes_grid1.py

+14
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,17 @@ def test_anchored_direction_arrows():
182182

183183
simple_arrow = AnchoredDirectionArrows(ax.transAxes, 'X', 'Y')
184184
ax.add_artist(simple_arrow)
185+
186+
187+
@image_comparison(baseline_images=['anchored_direction_arrows_many_args'],
188+
extensions=['png'])
189+
def test_anchored_direction_arrows_many_args():
190+
fig, ax = plt.subplots()
191+
ax.imshow(np.ones((10, 10)))
192+
193+
direction_arrows = AnchoredDirectionArrows(
194+
ax.transAxes, 'A', 'B', loc='upper right', color='red',
195+
aspect_ratio=-0.5, pad=0.6, borderpad=2, frameon=True, alpha=0.7,
196+
sep_x=-0.06, sep_y=-0.08, back_length=0.1, head_width=9,
197+
head_length=10, tail_width=5)
198+
ax.add_artist(direction_arrows)

0 commit comments

Comments
 (0)