We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5fbae9 commit d8fbd6dCopy full SHA for d8fbd6d
1 file changed
tests/test_utils.py
@@ -20,7 +20,7 @@ def ax_func(**kwargs):
20
cu.plotwrapper(ax_func)()
21
22
23
-def test_noticks():
+def test_nospines():
24
"""Tests all combinations of removing spines."""
25
26
compass = ('left', 'right', 'top', 'bottom')
@@ -37,3 +37,16 @@ def test_noticks():
37
assert spine.get_visible() == (not kwargs[key])
38
39
plt.close(fig)
40
+
41
42
+def test_noticks():
43
+ """Tests that noticks removes both x and y ticks."""
44
45
+ fig, ax = plt.subplots()
46
+ ax.plot([1, 2, 3, 4, 5])
47
+ cu.noticks(ax=ax)
48
49
+ assert len(ax.get_xticks()) == 0
50
+ assert len(ax.get_yticks()) == 0
51
52
+ plt.close(fig)
0 commit comments