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

Skip to content

Commit 466882f

Browse files
committed
Add acorr image test
1 parent bc4823f commit 466882f

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

12.7 KB
Loading

lib/matplotlib/tests/test_axes.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ def test_get_labels():
4343
assert ax.get_ylabel() == 'y label'
4444

4545

46+
@image_comparison(baseline_images=['acorr'], extensions=['png'], style='mpl20')
47+
def test_acorr():
48+
np.random.seed(19680801)
49+
n = 512
50+
x = np.random.normal(0, 1, n).cumsum()
51+
52+
fig, ax = plt.subplots()
53+
ax.acorr(x, maxlags=n - 1)
54+
55+
4656
@image_comparison(baseline_images=['spy'], extensions=['png'], style='mpl20')
4757
def test_spy():
4858
np.random.seed(19680801)

0 commit comments

Comments
 (0)