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
When plotting source reconstruction results on volume MRIs, the axis labels are often mangled and overlap each other both on the colorbar but also on the y-axis of the time series plot.
Furthermore, the MRI seems and colorbar seem to be shifted relative to the black background. The axis values of the MRI are shifted, too.
Steps to reproduce
importmnefrommne.beamformerimportmake_lcmv, apply_lcmvsample_path=mne.datasets.sample.data_path()
data_path=sample_path/'MEG'/'sample'subjects_dir=sample_path/'subjects'# read raw datafname_raw=data_path/'sample_audvis_raw.fif'raw=mne.io.read_raw_fif(fname_raw)
raw.pick(picks=['mag', 'stim'])
# make epochsevents=mne.find_events(raw)
epochs=mne.Epochs(raw, events, event_id=[3, 4])
evoked=epochs.average()
# load the precomputed MEG forward model from diskfname_fwd=data_path/'sample_audvis-meg-vol-7-fwd.fif'fwd_meg=mne.read_forward_solution(fname_fwd)
# compute covariance matrixdata_cov=mne.compute_covariance(epochs, tmin=0.0, tmax=0.15, method='empirical')
# compute beamformer, apply, and plotfilters=make_lcmv(epochs.info, fwd_meg, data_cov=data_cov, pick_ori='max-power')
stc=apply_lcmv(evoked=evoked, filters=filters)
stc.crop(-0.05, 0.15).plot(subjects_dir=subjects_dir, subject='sample', src=fwd_meg['src']);
Link to data
No response
Expected results
A pretty plot 🙂
Actual results
Additional information
This has been confirmed to happen in Jupyter notebooks and from a plain script (see MWE, run inside VSCode). Problem has been reproduced by @drammock .
This was done in a fresh conda install of the latest release, 1.8.0
The text was updated successfully, but these errors were encountered:
Ugh. I'm guessing this is due to some change in nilearn plotting.
It's also possible that somewhere we use blitting to update the plot for speed (?) and we could remove it. It would be slower but it would at least plot properly. Then once we have that working we could try reenabling blitting.
Description of the problem
When plotting source reconstruction results on volume MRIs, the axis labels are often mangled and overlap each other both on the colorbar but also on the y-axis of the time series plot.
Furthermore, the MRI seems and colorbar seem to be shifted relative to the black background. The axis values of the MRI are shifted, too.
Steps to reproduce
Link to data
No response
Expected results
A pretty plot 🙂
Actual results
Additional information
This has been confirmed to happen in Jupyter notebooks and from a plain script (see MWE, run inside VSCode). Problem has been reproduced by @drammock .
This was done in a fresh conda install of the latest release, 1.8.0
The text was updated successfully, but these errors were encountered: