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

Appearance settings

Commit 7fd98f1

Browse filesBrowse files
committed
Add a test for changing post-creation with array-like
1 parent 261670f commit 7fd98f1
Copy full SHA for 7fd98f1

File tree

Expand file treeCollapse file tree

1 file changed

+14
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-0
lines changed

‎lib/mpl_toolkits/tests/test_mplot3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/tests/test_mplot3d.py
+14Lines 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+
def test_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
def test_scatter3d_modification(fig_ref, fig_test):
314328
# Changing Path3DCollection properties post-creation should work correctly.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.