You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to go through the code of Working with sEEG data — MNE 1.4.2 documentation. However, when I am using “brain.add_volume_labels”, I found that the plot is different bewteen my Linux server and my laptop (windows system).
Steps to reproduce
%matplotlibqtimportmnemne.viz.set_3d_backend('pyvistaqt') # GUI requires pyvista backendmne.viz.set_3d_options(depth_peeling=False, antialias=False, multi_samples=1) # for bugs of pure black plot of 3D vizfsaverage_dir="/data/xyc/codes/Tests/MNE_fetch_fsaverage"mne.datasets.fetch_fsaverage(subjects_dir=fsaverage_dir, verbose=True) # use mne-python's fsaverage datamne.datasets.fetch_hcp_mmp_parcellation(subjects_dir=fsaverage_dir,verbose=True) # use mne-python's hcp mmp parcellationbrain=mne.viz.Brain(
"fsaverage",
subjects_dir=fsaverage_dir,
cortex='low_contrast', alpha=0.2, background='white'
)
brain.add_volume_labels(aseg="aparc+aseg")
Link to data
No response
Expected results
The brain from fsaverage and its parcellation should be correctly aligned for both linux and windows.
Actual results
For windows, the same code (only change the path of fsaverage_dir) is Okay with correct plot.
However, Linux’s plot is wrong. Note that I run my code with jupyter notebook in a remote Linux server. %matplotlib qt can run well with mne’s 3D plot. This plot also runs well with no errors or warmings.
Description of the problem
Hi,
I am trying to go through the code of Working with sEEG data — MNE 1.4.2 documentation. However, when I am using “brain.add_volume_labels”, I found that the plot is different bewteen my Linux server and my laptop (windows system).
Steps to reproduce
Link to data
No response
Expected results
The brain from fsaverage and its parcellation should be correctly aligned for both linux and windows.
Actual results
For windows, the same code (only change the path of fsaverage_dir) is Okay with correct plot.
However, Linux’s plot is wrong. Note that I run my code with jupyter notebook in a remote Linux server. %matplotlib qt can run well with mne’s 3D plot. This plot also runs well with no errors or warmings.
Plots can be found on https://mne.discourse.group/t/issue-in-brain-add-volume-labels/7037. Since Alexandre Gramfort also replicated this isssue, I think maybe it is some bug or mistake in brain.add_volume_labels() that the coordinates are misused in Linux.
Best,
Xiaoyu😊
Additional information
My outputs of “mne sys_info” for windows and Linux:
The text was updated successfully, but these errors were encountered: