Skip to content

Commit

Permalink
BUG: Fix bug with default alpha and axes (mne-tools#12187)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner authored Nov 8, 2023
1 parent 6874483 commit 2bc47d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mne/viz/_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ def _handle_sensor_types(meg, eeg, fnirs):
fnirs=dict(channels="fnirs", pairs="fnirs_pairs"),
)
sensor_alpha = {
key: 0.25 if key == "meg_helmet" else 0.8
key: dict(meg_helmet=0.25, meg=0.25).get(key, 0.8)
for ch_dict in alpha_map.values()
for key in ch_dict.values()
}
Expand Down
2 changes: 1 addition & 1 deletion mne/viz/backends/_pyvista.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ def quiver3d(
mesh=mesh,
color=color,
opacity=opacity,
scalars=mesh_scalars,
scalars=mesh_scalars if colormap is not None else None,
colormap=colormap,
show_scalar_bar=False,
backface_culling=backface_culling,
Expand Down
3 changes: 1 addition & 2 deletions tutorials/forward/20_source_alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@
# to their equivalent locations in another. The three main coordinate frames
# are:
#
# * :blue:`"meg"`: the coordinate frame for the physical locations of MEG
# sensors
# * :blue:`"meg"`: the coordinate frame for the physical locations of MEG sensors
# * :gray:`"mri"`: the coordinate frame for MRI images, and scalp/skull/brain
# surfaces derived from the MRI images
# * :pink:`"head"`: the coordinate frame for digitized sensor locations and
Expand Down

0 comments on commit 2bc47d0

Please sign in to comment.