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

Commit7fd98f1

Browse files
committed
Add a test for changing post-creation with array-like
1 parent261670f commit7fd98f1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎lib/mpl_toolkits/tests/test_mplot3d.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,20 @@ def test_scatter3d_linewidth():
309309
marker='o',linewidth=np.arange(10))
310310

311311

312+
@check_figures_equal(extensions=['png'])
313+
deftest_scatter3d_linewidth_modification(fig_ref,fig_test):
314+
# Changing Path3DCollection linewidths with array-like post-creation
315+
# should work correctly.
316+
ax_test=fig_test.add_subplot(projection='3d')
317+
c=ax_test.scatter(np.arange(10),np.arange(10),np.arange(10),
318+
marker='o')
319+
c.set_linewidths(np.arange(10))
320+
321+
ax_ref=fig_ref.add_subplot(projection='3d')
322+
ax_ref.scatter(np.arange(10),np.arange(10),np.arange(10),marker='o',
323+
linewidths=np.arange(10))
324+
325+
312326
@check_figures_equal(extensions=['png'])
313327
deftest_scatter3d_modification(fig_ref,fig_test):
314328
# Changing Path3DCollection properties post-creation should work correctly.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp