-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
MNE Python stc.plot(), draws the brain as translucent #9263
Comments
Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴🏽♂️ |
Hello @Mirrabella and thank you for reporting your issue. I would like to know more about your configuration, it will help me investigate the origin of this behaviour. If you don't mind, could you share the output of: $ python -c "import mne; mne.sys_info()" and: $ python -c "import pyvista; print(pyvista.Report())" It would be helpful if you could also share a minimal code snippet giving this output so that I can try to reproduce on my end. |
From what I can tell, you seem to use the |
Hello and thank you very much for your answer. My configuration on printscreen. Code is from example MNE Python: import os.path as op
import os
import mne
from mne.datasets import sample
data_path = sample.data_path()
# the raw file containing the channel location + types
raw_fname = data_path + '/MEG/sample/sample_audvis_raw.fif'
# The paths to Freesurfer reconstructions
subjects_dir = data_path + '/subjects'
os.environ['SUBJECTS_DIR'] = subjects_dir
subject = 'sample'
raw = mne.io.read_raw_fif(raw_fname)
events = mne.find_events(raw = raw, stim_channel = 'STI 014')
event_id = dict(aud_r=2, vis_r=4)
epochs = mne.Epochs(raw=raw, events = events, event_id = event_id)
evoked = epochs.average()
conductivity = [0.3] # for single layer
model = mne.make_bem_model(subject=subject, ico=4, conductivity= conductivity, subjects_dir=subjects_dir, verbose=None)
bem = mne.make_bem_solution(model)
trans = data_path + '/MEG/sample/sample_audvis_raw-trans.fif'
src = mne.setup_source_space(subject, spacing='oct4', add_dist='patch', subjects_dir=subjects_dir)
fwd = mne.make_forward_solution(raw_fname, trans=trans, src=src, bem=bem, meg=True, eeg=False, mindist=5.0, n_jobs=1, verbose=True)
cov = mne.compute_covariance(epochs, method='auto')
inv = mne.minimum_norm.make_inverse_operator(raw.info, fwd, cov, loose=0.2)
stc = mne.minimum_norm.apply_inverse(evoked, inv, lambda2=1. / 9.)
stc.plot(hemi='both') Thank you in advance:) |
Unfortunately, I can't reproduce this transparency bug on my machine right now but I can still guess that it could come from I'm less familiar with
environment.yml
This will effectively fetch the latest version of |
I tried to make the settings according to point 1. But now an error occurs. I would be very grateful if you could give me some more advice on how to fix it. As I understand it, there are some problems with mesa (I'm not very strong in this :() |
Hm... It seems that either mesa cannot be setup properly or no window can be opened, are you by any chance using a headless server? If that's the case you might be interested in: https://mne.tools/stable/install/mne_python.html?highlight=server#installing-to-a-headless-server |
This should be fixed on latest main by our use of depth peeling (by default anyway) |
When I use stc.plot(), this function draws the brain as translucent, and it is seems very stange and the picture is poorly perceived.
Can you please tell me how to change the transparency parameter?
MNE version 23.0
I tried to used View — Toggle Eye Dome Lighting, but it did not help, picture still seems strange too. :(
![Снимок экрана от 2021-04-07 17-33-42](https://user-images.githubusercontent.com/33099309/113887280-08b1f380-97ca-11eb-9252-4296edb36663.jpeg)
![Снимок экрана от 2021-04-07 17-45-51](https://user-images.githubusercontent.com/33099309/113887312-0f406b00-97ca-11eb-8183-32cbe0b2e2af.jpeg)
The text was updated successfully, but these errors were encountered: