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

Skip to content

Commit f188b62

Browse files
Add mplot3d test to cover hiding most elements
1 parent 470e488 commit f188b62

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ def test_invisible_axes(fig_test, fig_ref):
3939
ax.set_visible(False)
4040

4141

42+
@mpl3d_image_comparison(['invisible_grid_ticks_axis.png'], style='mpl20')
43+
def test_invisible_grid_ticks_axis():
44+
fig = plt.figure()
45+
ax = fig.add_subplot(projection='3d')
46+
ax.grid(False)
47+
ax.set_xticks([])
48+
ax.set_yticks([])
49+
ax.set_zticks([])
50+
for axis in [ax.xaxis, ax.yaxis, ax.zaxis]:
51+
axis.line.set_visible(False)
52+
53+
4254
@mpl3d_image_comparison(['aspects.png'], remove_text=False, style='mpl20')
4355
def test_aspects():
4456
aspects = ('auto', 'equal', 'equalxy', 'equalyz', 'equalxz', 'equal')

0 commit comments

Comments
 (0)