-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.status: confirmed bug
Milestone
Description
There is a critical typo in mlab.cohere
introduced by 1504540:
matplotlib/lib/matplotlib/mlab.py
Lines 1341 to 1347 in 49d5ced
Pxx, f = psd(x, NFFT, Fs, detrend, window, noverlap, pad_to, sides, | |
scale_by_freq) | |
Pyy, f = psd(y, NFFT, Fs, detrend, window, noverlap, pad_to, sides, | |
scale_by_freq) | |
Pxy, f = csd(x, y, NFFT, Fs, detrend, window, noverlap, pad_to, sides, | |
scale_by_freq) | |
Cxy = np.abs(Pxy) ** 2 / (Pxx * Pxy) |
There is a critical typo in mlab.cohere
, the final line should read:
Cxy = np.abs(Pxy) ** 2 / (Pxx * Pyy)
[i.e. a single character change Pxy -> Pyy
].
Metadata
Metadata
Assignees
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.status: confirmed bug