8000 Test getting axis labels · matplotlib/matplotlib@653052b · GitHub
[go: up one dir, main page]

Skip to content

Commit 653052b

Browse files
committed
Test getting axis labels
1 parent 67ffdf7 commit 653052b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
# the tests with multiple threads.
3636

3737

38+
def test_get_labels():
39+
fig, ax = plt.subplots()
40+
ax.set_xlabel('x label')
41+
ax.set_ylabel('y label')
42+
assert ax.get_xlabel() == 'x label'
43+
assert ax.get_ylabel() == 'y label'
44+
45+
3846
@image_comparison(baseline_images=['formatter_ticker_001',
3947
'formatter_ticker_002',
4048
'formatter_ticker_003',

0 commit comments

Comments
 (0)
0