Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a30a64e

Browse files
committed
Test that plot results aren't affected by mutating input arrays
1 parent 7a1df78 commit a30a64e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,10 +2140,6 @@ def test_mutating_input_arrays_y_and_z(fig_test, fig_ref):
21402140
z = [0.0, 0.0, 0.0]
21412141
ax1.plot(x, y, z, 'o-')
21422142

2143-
ax1.set_ylim([0, 4])
2144-
ax1.set_zlim([0, 4])
2145-
fig_test.draw_without_rendering()
2146-
21472143
# mutate y,z to get a nontrivial line
21482144
y[:] = [1, 2, 3]
21492145
z[:] = [1, 2, 3]
@@ -2154,7 +2150,3 @@ def test_mutating_input_arrays_y_and_z(fig_test, fig_ref):
21542150
y = [0.0, 0.0, 0.0]
21552151
z = [0.0, 0.0, 0.0]
21562152
ax2.plot(x, y, z, 'o-')
2157-
2158-
ax2.set_ylim([0, 4])
2159-
ax2.set_zlim([0, 4])
2160-
fig_test.draw_without_rendering()

0 commit comments

Comments
 (0)