Skip to content

Commit cfbbb65

Browse files
committed
Add test for remaining axis options
1 parent d7e050b commit cfbbb65

File tree

2 files changed

+8
-0
lines changed

2 files 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
@@ -7244,6 +7244,14 @@ def test_secondary_repr():
72447244
assert repr(secax) == '<SecondaryAxis: >'
72457245

72467246

7247+
@image_comparison(['axis_options.png'], remove_text=True, style='mpl20')
7248+
def test_axis_options():
7249+
fig, axes = plt.subplots(1, 3)
7250+
for i, option in enumerate(('scaled', 'tight', 'image')):
7251+
axes[i].plot((1, 2), (1, 2.5))
7252+
axes[i].axis(option)
7253+
7254+
72477255
def color_boxes(fig, ax):
72487256
"""
72497257
Helper for the tests below that test the extents of various axes elements

0 commit comments

Comments
 (0)