Colormap range

Hi,

We are working on Matlab, using some Brainstorm functions, and we are mapping the powers (on sources) on 8 frequency bands. We would like our 8 figures to have the same colormap range. We tried using the matlab function “caxis ([cmin, cmax])” but it didn’t work.
The following code uses Brainstorm functions. For instance, we think we should change the MaxMode (local) for the range we want:

% ===== COLORMAP SETTINGS
CLM.CMap = colormap(‘jet’);
CLM.DisplayColorbar = true;
CLM.isAbsoluteValues = true;
CLM.MaxMode = ‘local’;
CLM.isRealMin = true;

We’ve tried to change ‘local’ for ‘[-5,5]’ but it didn’t work either.

What should we do?

Thank you.

Hello,

I recently wrote a tutorial about the colormap management:
http://neuroimage.usc.edu/brainstorm/Tutorials/Colormaps

To understand how to do the same things programmatically, I would recommend you do it with the interface and then check what was modified in the internal data structures. (global GlobalData; GlobalData.Colormaps).

Cheers,
Francois