mkkubins
(Marta )
July 16, 2021, 1:44pm
1
Hi!
I am trying to do some stc plots but I have problem with colorbar.
Code:
brain = stc.plot(clim=dict(kind=āpercentā, lims=[30, 45, 60]),colorbar=True,transparent=True,subjects_dir=subjects_dir, views=ādorsalā, hemi=ābothā,background=āwhiteā,smoothing_steps=25, time_label=āwPLIā)
It shows colors in the strange way. Can you help me how can I fix it?
Best,
Marta
mne.sys_info()
Platform: Windows-10-10.0.19042-SP0
Python: 3.9.6
mne: 0.23.0
numpy: 1.21.0 {blas=NO_ATLAS_INFO, lapack=lapack}
scipy: 1.7.0
matplotlib: 3.4.2 {backend=module://matplotlib_inline.backend_inline}
sklearn: 0.24.2
numba: 0.53.1
nibabel: 3.2.1
nilearn: 0.8.0
dipy: 1.4.1
cupy: Not found
pandas: 1.3.0
mayavi: 4.7.2
pyvista: 0.31.3 {pyvistaqt=0.5.0, OpenGL 4.5.0 - Build 27.20.100.8935 via Intel(R) Iris(R) Plus Graphics}
vtk: 9.0.1
PyQt5: 5.12.3
richard
(Richard Hƶchenberger)
July 16, 2021, 5:32pm
2
cc @GuillaumeFavelier , who might know whatās going on
1 Like
agramfort
(Alexandre Gramfort)
July 17, 2021, 7:15am
3
can you share a full snippet to replicate?
is it a problem you see with an stc plot on your system?
Alex
mkkubins
(Marta )
July 19, 2021, 8:16am
4
Yes I can see this problem with all stc plots
threshold_prop = 0.20
degree = mne.connectivity.degree(con_s, threshold_prop=threshold_prop)
stc = mne.labels_to_stc(labels_parc, degree)
brain = stc.plot(
clim=dict(kind='value', pos_lims=[0.5, 0.6, 0.7]),colormap='bwr',colorbar=True,transparent=True,
subjects_dir=subjects_dir, views='dorsal', hemi='both',background='white',
smoothing_steps=25)
Marta
agramfort
(Alexandre Gramfort)
July 20, 2021, 7:43am
5
then itās an install problem or a problem on your system.
Alex
mkkubins
(Marta )
July 20, 2021, 7:58am
6
ok, thanks for help Alex!
Marta
richard
(Richard Hƶchenberger)
July 20, 2021, 1:57pm
7
@mkkubins Did you install everything according to the official installation instructions?
Can you check if your systemās graphics card drivers are up to date?
mkkubins
(Marta )
July 22, 2021, 6:01pm
8
I checked this and it is updated. I will reinstall my system and if it still be a issue I will post it here again
richard
(Richard Hƶchenberger)
July 29, 2021, 8:38am
9
Hello @mkkubins , are you still experiencing this issue?
mkkubins
(Marta )
July 29, 2021, 9:18am
10
Hi @richard ! I havenāt had time to reinstall my system, I will do it next week and let you know but with my previous system yes
richard
(Richard Hƶchenberger)
July 29, 2021, 9:42am
11
Would you be willing to try a pre-release of an MNE-Python installer package Iāve created? It might help fix your issue. (And it if doesnāt ā¦ you can still try to reinstall everything :))
It would be the Windows installer here (I havenāt tried it yet, since I donāt have a Windows machine!!):
Let me know how that goes
mkkubins
(Marta )
July 29, 2021, 10:14am
12
Sure I will try later this week and let you know
1 Like
mkkubins
(Marta )
August 1, 2021, 2:47pm
14
I have tried to download it and isntall but the issue still occurs
richard
(Richard Hƶchenberger)
August 1, 2021, 3:42pm
15
Do you think you could share a reproducible example (including the data) with me? Via Google Drive, Dropbox, Weshare, ā¦
My email address is richard.hochenberger@gmail.com
mkkubins
(Marta )
August 25, 2021, 9:22am
16
Sorry for late response, I have send you email
mkkubins
(Marta )
August 25, 2021, 9:23am
17
I have just seen message that this email is not correct, can you check this?
richard
(Richard Hƶchenberger)
August 25, 2021, 9:33am
18
Whoops, sorry, there was a typo in my address! The correct address is:
richard.hoechenberger@gmail.com
richard
(Richard Hƶchenberger)
August 25, 2021, 9:42am
19
Iāve received your email and will have a look. Thanks!
mkkubins
(Marta )
August 25, 2021, 12:33pm
20
Thats great, thanks a lot !