8000 mlab.cohere: fixed critical typo · matplotlib/matplotlib@b2cc191 · GitHub
[go: up one dir, main page]

Skip to content

Commit b2cc191

Browse files
mlab.cohere: fixed critical typo
fixes #10003
1 parent 9986196 commit b2cc191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/mlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ def cohere(x, y, NFFT=256, Fs=2, detrend=detrend_none, window=window_hanning,
13441344
scale_by_freq)
13451345
Pxy, f = csd(x, y, NFFT, Fs, detrend, window, noverlap, pad_to, sides,
13461346
scale_by_freq)
1347-
Cxy 4E7E = np.abs(Pxy) ** 2 / (Pxx * Pxy)
1347+
Cxy = np.abs(Pxy) ** 2 / (Pxx * Pyy)
13481348
return Cxy, f
13491349

13501350

0 commit comments

Comments
 (0)
0