Commit bb70db9
fix: correct global coherence plotting for Nyquist frequency fix
The Nyquist frequency fix changed how frequencies are returned:
- connectivity.frequencies now includes the Nyquist frequency (N//2+1 freqs)
- global_coherence() returns data for ALL frequencies (both +/-)
Updated the global coherence plotting code to:
1. Extract first N//2+1 frequencies from global_coherence
2. Use connectivity.frequencies directly (no manual Nyquist append)
3. Add proper edge for pcolormesh grid to match data dimensions
This fixes the pcolormesh dimension mismatch error.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 6cc0845 commit bb70db9
File tree
2 files changed
+62
-47
lines changed- examples
2 files changed
+62
-47
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2424 | 2424 | | |
2425 | 2425 | | |
2426 | 2426 | | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
2427 | 2432 | | |
2428 | 2433 | | |
2429 | | - | |
| 2434 | + | |
2430 | 2435 | | |
2431 | 2436 | | |
2432 | 2437 | | |
2433 | 2438 | | |
2434 | 2439 | | |
2435 | | - | |
2436 | | - | |
| 2440 | + | |
| 2441 | + | |
2437 | 2442 | | |
2438 | 2443 | | |
2439 | 2444 | | |
| |||
0 commit comments