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

Skip to content

Commit 61085a0

Browse files
authored
Merge pull request #10011 from matplotlib/auto-backport-of-pr-10004
Backport PR #10004 on branch v2.1.x
2 parents 9f17a5b + c515aad commit 61085a0

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 = 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)