Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 466882f

Browse filesBrowse files
committed
Add acorr image test
1 parent bc4823f commit 466882f
Copy full SHA for 466882f

File tree

Expand file treeCollapse file tree

2 files changed

+10
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-0
lines changed
Loading

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+10Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.