Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitefcca59

Browse files
Magnus Nordidahj
Magnus Nord
authored andcommitted
AnchoredDirectionArrows: add test which uses many of the arguments
1 parente200c44 commitefcca59

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

‎lib/mpl_toolkits/tests/test_axes_grid1.py

Lines changed: 14 additions & 0 deletions
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+
deftest_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)

[8]ページ先頭

©2009-2025 Movatter.jp