8000 Add a test for changing post-creation with array-like · matplotlib/matplotlib@7fd98f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7fd98f1

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

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+
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