Skip to content

Conversation

@larsoner
Copy link
Member

@larsoner larsoner commented Oct 4, 2023

Closes #11580

Ready for review/merge from my end.

I ended up implementing it where if you want one actor per channel, you should pass a color-like array the same length as the sensors (really relevant just for @wmvanvliet for the Xfit replacement). If you pass a single color, it will plot more efficiently by plotting them all in a single color with a single actor. This keeps backward compat and preserves efficiency/rendering for mne coreg where we want this behavior.

@drammock drammock enabled auto-merge (squash) October 4, 2023 12:30
@drammock drammock merged commit 05f1fa6 into mne-tools:main Oct 4, 2023
@drammock drammock deleted the colors branch October 4, 2023 22:14
larsoner added a commit to larsoner/mne-python that referenced this pull request Oct 10, 2023
* upstream/main: (37 commits)
  Use constrained layout in matplotlib visualization (mne-tools#12050)
  Add raw stc (mne-tools#12001)
  [MRG] update codeowners (mne-tools#12089)
  DOC: Morlet wavelet length in tfr_morlet (mne-tools#12073)
  BUG: Fix bug with mne browser backend (mne-tools#12078)
  Cache avatars (mne-tools#12077)
  BUG: Fix bug with ch_name resolution (mne-tools#12086)
  add unicode roundtrip for FIF (mne-tools#12080)
  add Ivan to names.inc (mne-tools#12081)
  MAINT: Work around PySide 6.5.3 event loop error (mne-tools#12076)
  mne-tools#11608, buggfix and docstring update (mne-tools#12066)
  MAINT: Fix broken examples (mne-tools#12074)
  Add UI Event linking to DraggableColorbar (mne-tools#12057)
  handle lazy loading through .pyi type stubs (mne-tools#12072)
  BUG: Fix bug with sensor_colors (mne-tools#12068)
  clean  up some deprecations (mne-tools#12067)
  Allow not dropping bads when creating or plotting Spectrum objs (mne-tools#12006)
  Collapsible html repr for raw/info (mne-tools#12064)
  BUG: Fix bug with pickling MNEBadsList (mne-tools#12063)
  add details for Denis (mne-tools#12065)
  ...
snwnde pushed a commit to snwnde/mne-python that referenced this pull request Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: plot_alignment sensor_colors unexpected behavior

2 participants