brainstorm-tools / brainstorm3

Brainstorm software: MEG, EEG, fNIRS, ECoG, sEEG and electrophysiology
http://neuroimage.usc.edu/brainstorm
GNU General Public License v3.0
384 stars 162 forks source link

change default color order for nirs #724

Closed Edouard2laire closed 3 months ago

Edouard2laire commented 4 months ago

By convention, we prefer to have HbO in red, HbR in blue, and HbT in green. This changes the order so the colors are good without modifying the figure.

Before; image

After:

image

one small limitation with this fix is that displaying multiple HbO signals will make them all red.

Edouard2laire commented 3 months ago

Hello, i just tried and it doesnt work: strcmpi(TsInfo.Modality, 'NIRS') never goes in the if as TsInfo.Modality contains 'results'

rcassani commented 3 months ago

What is the file you are opening?

Edouard2laire commented 3 months ago

The result of MNE or MEM on the cortex. Created either using https://github.com/Nirstorm/nirstorm/blob/master/bst_plugin/inverse/process_nst_cmem.m or https://github.com/Nirstorm/nirstorm/blob/master/bst_plugin/inverse/process_nst_wmne.m

rcassani commented 3 months ago

🙏 thanks for the extra information This has been fixed in: 1c331b6

Edouard2laire commented 3 months ago

works great. Thanks :)