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 ee466a4

Browse filesBrowse files
committed
Add test for set_3d_properties
1 parent 4313f7c commit ee466a4
Copy full SHA for ee466a4

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+6
-0
lines changed

‎lib/mpl_toolkits/tests/test_mplot3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/tests/test_mplot3d.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,12 @@ def test_line3d_set_get_data_3d():
11191119
np.testing.assert_array_equal((x, y, z), line.get_data_3d())
11201120
line.set_data_3d(x2, y2, z2)
11211121
np.testing.assert_array_equal((x2, y2, z2), line.get_data_3d())
1122+
line.set_xdata(x)
1123+
line.set_xdata(y)
1124+
line.set_3d_properties(zs=z, zdir='z')
1125+
np.testing.assert_array_equal((x, y, z), line.get_data_3d())
1126+
line.set_3d_properties(zs=0, zdir='z')
1127+
np.testing.assert_array_equal((x, y, np.zeros_like(z)), line.get_data_3d())
11221128

11231129

11241130
@check_figures_equal(extensions=["png"])

0 commit comments

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