Skip to content
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

plot_evoked_field: fix not being able to tweak the vmin/vmax of the field lines when plot_density=False #13048

Merged
merged 5 commits into from
Jan 8, 2025

Conversation

wmvanvliet
Copy link
Contributor

This concerns the UI in the interactive plot_evoked_field viewer of magnetic field lines.

In my initial implementation, I mistakenly thought that the input boxes for vmin and vmax would only apply to the color "blobs" on the mesh when plot_density=True. But they also (correctly) apply to the contour lines (i.e. the magnetic field lines). Hence, we don't want these input boxes hidden when plot_density=False.

@wmvanvliet
Copy link
Contributor Author

wmvanvliet commented Jan 7, 2025

The only change is the removal of if self._show_density: and then an un-indenting of everything by one level.

Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth a bugfix changelog entry or no?

The only change is the removal of if self._show_density: and then an un-indenting of everything by one level.

👍 in case anyone doesn't know about this cool GitHub feature:

image

ticking the "hide whitespace" box and reloading made it very easy to review!

@larsoner larsoner added this to the 1.10 milestone Jan 7, 2025
@wmvanvliet wmvanvliet requested a review from agramfort as a code owner January 8, 2025 09:44
@wmvanvliet
Copy link
Contributor Author

Worth a bugfix changelog entry or no?

It's a user facing change, so I guess there should be an entry.

@wmvanvliet wmvanvliet enabled auto-merge (squash) January 8, 2025 10:04
@wmvanvliet wmvanvliet merged commit 6bc7dfb into mne-tools:main Jan 8, 2025
30 checks passed
qian-chu pushed a commit to qian-chu/mne-python that referenced this pull request Jan 20, 2025
… the field lines when `plot_density=False` (mne-tools#13048)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants