8000 add image test for mplot3d axis cla · matplotlib/matplotlib@7d11149 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d11149

Browse files
committed
add image test for mplot3d axis cla
1 parent 6f15413 commit 7d11149

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Loading

lib/mpl_toolkits/tests/test_mplot3d.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,15 @@ def test_axes3d_labelpad():
257257
tick.set_pad(tick.get_pad() - i * 5)
258258

259259

260+
@image_comparison(baseline_images=['axes3d_cla'], extensions=['png'])
261+
def test_axes3d_cla():
262+
# fixed in pull request 4553
263+
fig = plt.figure()
264+
ax = fig.add_subplot(1,1,1, projection='3d')
265+
ax.set_axis_off()
266+
ax.cla() # make sure the axis displayed is 3D (not 2D)
267+
268+
260269
if __name__ == '__main__':
261270
import nose
262271
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)

0 commit comments

Comments
 (0)
0