Skip to content

Conversation

@sappelhoff
Copy link
Member

@sappelhoff sappelhoff commented Mar 17, 2025

This PR will allow users to plot dipoles using spheres, instead of only arrow on a Brain object. This is helpful for cases where the dipole orientation is either meaningless or unimportant.

options are taken from ALLOWED_QUIVER_MODES and are already checked in self._renderer.quiver3d.

before, we only could do this:

image

now we can also do this:

image

Copy link
Contributor

@wmvanvliet wmvanvliet left a comment

Choose a reason for hiding this comment

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

Very small change, so no problem to merge this I think. I've given a suggestion for an alternative way to write the docstring, see which one you like best.

Co-authored-by: Marijn van Vliet <w.m.vanvliet@gmail.com>
@wmvanvliet wmvanvliet enabled auto-merge (squash) March 19, 2025 09:09
@wmvanvliet wmvanvliet merged commit 1fb9dd6 into mne-tools:main Mar 19, 2025
39 of 40 checks passed
@sappelhoff sappelhoff deleted the modes branch March 19, 2025 09:29
larsoner added a commit to larsoner/mne-python that referenced this pull request Apr 4, 2025
* upstream/main: (149 commits)
  FIX make_watershed_bem to handle missing talairach_with_skull.lta courtesy Freesurfer 8 (mne-tools#13172)
  ENH: Add upsampling for MEG helmet surface (mne-tools#13179)
  MAINT: Update code credit (mne-tools#13180)
  BUG: Fix bug with least-squares sphere fit (mne-tools#13178)
  fix EDF export (mne-tools#13174)
  fix typo (mne-tools#13171)
  [pre-commit.ci] pre-commit autoupdate (mne-tools#13164)
  Fix dev installation guide (mne-tools#13163)
  expose 'mode' for plotting dipole on brain (mne-tools#13162)
  turn dipole attrs into properties (mne-tools#13153)
  remove misformatted (and unused) crossref anchor (mne-tools#13155)
  doc: point to read_dipole (mne-tools#13149)
  [pre-commit.ci] pre-commit autoupdate (mne-tools#13152)
  BUG: Fix bug with not short-circuiting n_jobs=1 (mne-tools#13147)
  FIX: Missing coordinates.xml in MFF file (mne-tools#13148)
  FIX: Gracefully handle bad XML files in EGI reader (mne-tools#13145)
  Fixes for Latest IPython (9.0.1) (mne-tools#13146)
  Fix intersphinx (mne-tools#13143)
  BUG: Fix bug with parallel doc build (mne-tools#13140)
  [pre-commit.ci] pre-commit autoupdate (mne-tools#13141)
  ...
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