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

Skip to content

Commit 88fb88a

Browse files
committed
TST: Add test verifying gh-8894
1 parent 73d796d commit 88fb88a

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

23 KB
Loading

lib/mpl_toolkits/tests/test_mplot3d.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,13 @@ def test_axes3d_cla():
383383
ax.set_axis_off()
384384
ax.cla() # make sure the axis displayed is 3D (not 2D)
385385

386+
@image_comparison(baseline_images=['axes3d_rotated'], extensions=['png'])
387+
def test_axes3d_rotated():
388+
# fixed in pull request 4553
389+
fig = plt.figure()
390+
ax = fig.add_subplot(1,1,1, projection='3d')
391+
ax.view_init(90, 45) # look down, rotated. Should be square
392+
386393
def test_plotsurface_1d_raises():
387394
x = np.linspace(0.5, 10, num=100)
388395
y = np.linspace(0.5, 10, num=100)

0 commit comments

Comments
 (0)