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

Skip to content

Commit 63659fd

Browse files
jklymakandrew-fennell
authored andcommitted
TST: simple test
1 parent 3f73d58 commit 63659fd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7766,3 +7766,10 @@ def test_bezier_autoscale():
77667766
# Bottom ylim should be at the edge of the curve (-0.5), and not include
77677767
# the control point (at -1)
77687768
assert ax.get_ylim()[0] == -0.5
7769+
7770+
7771+
def test_get_xticklabel():
7772+
fig, ax = plt.subplots()
7773+
ax.plot(np.arange(10))
7774+
for ind in range(10):
7775+
assert ax.get_xticklabels()[ind].get_text() == f'{ind}'

0 commit comments

Comments
 (0)