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

Skip to content

Commit 75226a3

Browse files
committed
Add axline image test
1 parent 75a5ff2 commit 75226a3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Loading

lib/matplotlib/tests/test_axes.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3296,6 +3296,18 @@ def test_eb_line_zorder():
32963296
ax.set_title("errorbar zorder test")
32973297

32983298

3299+
@image_comparison(baseline_images=['axline'], extensions=['png'],
3300+
style='mpl20')
3301+
def test_axline():
3302+
fig, ax = plt.subplots()
3303+
ax.set_xlim(-1, 1)
3304+
ax.set_ylim(-1, 1)
3305+
ax.axline(1, 0)
3306+
ax.axline(0, 0, color='C1')
3307+
ax.axline(0, 0.5, color='C2')
3308+
ax.axline(1e5, -0.5e5, color='C3')
3309+
3310+
32993311
@image_comparison(
33003312
baseline_images=['vlines_basic', 'vlines_with_nan', 'vlines_masked'],
33013313
extensions=['png']

0 commit comments

Comments
 (0)