-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
FIX: Fix regression with mne.viz.plot_evoked #13481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hmmm in your first plot there is a gap at the bottom, ideally the ylim would start at zero since GFP must be non-negative... I think in the non-GFP-only case we must do something to set the ylim properly. What is it? Could we extend that logic instead, setting the ylim manually in the GFP-only case? That seems like maybe better/more consistent behavior. Maybe something like |
|
Ok, then actually the behavior before this issue was introduced was already not correct. It also has the gap in the gfp-only case. See: https://mne.tools/1.5/auto_tutorials/evoked/30_eeg_erp.html#sphx-glr-auto-tutorials-evoked-30-eeg-erp-py I'll look into it again. |
|
I've pushed one more commit to make https://mne.tools/dev/auto_tutorials/evoked/30_eeg_erp.html#global-field-power-gfp re-render, just so we can confirm that the plot looks correct again when that tutorial is built by the CIs. Assuming it looks good, +1 for merge |
|
(I did it myself @mistraube because for security reasons, in our repository CircleCI doesn't run on PRs from people who don't have CircleCI accounts) |
|
I had a look and it seemed correct, thanks @mistraube ! |
* upstream/main: ENH: Parse EyeLink BUTTON Events (e.g. from a game controller) (mne-tools#13499) FIX: Fix regression with mne.viz.plot_evoked (mne-tools#13481) DOC: related software doc (mne-tools#13498) FIX: Replace use of deprecated Numpy func in GDF reader (Supersedes mne-tools#13415) (mne-tools#13497) DOC: Link to membership from governance page (mne-tools#13496) [pre-commit.ci] pre-commit autoupdate (mne-tools#13495) BUG: Fix issue with Montage.plot (mne-tools#13494)

Reference issue (if any)
Fixes #13271.
What does this implement/fix?
Fix a regression with
mne.viz.plot_evoked()when usinggfp="only"orgfp=True.Plots based on: https://mne.tools/stable/auto_tutorials/evoked/30_eeg_erp.html#sphx-glr-auto-tutorials-evoked-30-eeg-erp-py
Before:


After:
Before:


After:
Additional information
I tried to identify any other plotting code that might be negatively affected by this change, but I didn't find any.