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

Skip to content

Commit a16182f

Browse files
committed
adding test case for creating a 3d graph from 2d [5724]
1 parent e2c1514 commit a16182f

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

64.2 KB
Loading

lib/mpl_toolkits/tests/test_mplot3d.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@ def test_scatter3d_color():
174174
ax.scatter(np.arange(10, 20), np.arange(10, 20), np.arange(10, 20),
175175
color='b', marker='s')
176176

177+
@image_comparison(baseline_images=['plot_3d_from_2d'], remove_text=True,
178+
extensions=['png'])
179+
def test_plot_3d_from_2d():
180+
fig = plt.figure()
181+
ax = fig.add_subplot(111, projection='3d')
182+
xs = np.arange(0, 5)
183+
ys = np.arange(5, 10)
184+
ax.plot(xs, ys, zs=0, zdir='x')
177185

178186
@image_comparison(baseline_images=['surface3d'], remove_text=True)
179187
def test_surface3d():

0 commit comments

Comments
 (0)