Skip to content

Commit 5a33bcc

Browse files
committed
Fix acorr test
1 parent 9b5ecff commit 5a33bcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ def test_acorr(fig_test, fig_ref):
109109
x = np.random.normal(0, 1, Nx).cumsum()
110110
maxlags = Nx-1
111111

112-
fig_test, ax_test = plt.subplots()
112+
ax_test = fig_test.subplots()
113113
ax_test.acorr(x, maxlags=maxlags)
114114

115-
fig_ref, ax_ref = plt.subplots()
115+
ax_ref = fig_ref.subplots()
116116
# Normalized autocorrelation
117117
norm_auto_corr = np.correlate(x, x, mode="full")/np.dot(x, x)
118118
lags = np.arange(-maxlags, maxlags+1)

0 commit comments

Comments
 (0)