Iām having a problem with stc.plot function. I want to use a divergent colormap when plotting the source estimate which includes negative values as well as positive ones. Mne documentation suggests using pos_lim instead of lim for divergent colormaps. Therefore, I used pos_lim as following:
brain = stc.plot(**kwargs, colormap=āseismicā, clim=dict(kind=āvalueā, pos_lims=[0, 300, 600]))
What I expected from this was to have a plot with negative and positive values with a scale of [-600, 600] however I ended up with having only positive values and scale of [0,600] in resulting plot.
So, Iād like to ask if there is any other parameter that I need to set to make this work?
Hello @richard! Thanks for your incredibly fast response!
The mne version Iām using is 0.21.0. When I looked at the code snippet you sent, I saw that youāre using pyvista as the mne backend. Iām using mayavi. So, do you think that could be the reason?
I tried changing that to pyvista but now Iām getting an error saying BackgroundPlotter is no longer accessible by pyvista.BackgroundPlotter
Hello, please update to MNE-Python 0.23.1, as it includes numerous fixes and improvements compared to 0.21. The PyVista backend provides a greatly improved plotting experience, so you donāt want to miss out on that anyway
Updating mne to 0.23.1 solved the issue when running with mayavi however I got another error "type object āLanguageā has no attribute āEnglishā " when I tried using PyVista.