Tutorial 18: Colormaps

Authors: Francois Tadel, Elizabeth Bock, Sylvain Baillet

When displaying signals on the sensor array or on the cortex surface, we need to convert the amplitude of the signal into a color. The way the values are mapped to colors has a lot of influence over the visual interpretation of the figures. The selection of the appropriate colormap is an important step of the data exploration.

Colormap menus

Brainstorm keeps track of many user-defined colormaps: anatomy, EEG, MEG, sources, stat, time, time-frequency, etc. You can go to the Colormaps menu in the main window to see this list.

Usually, you will use only popup menus from specific figures to edit the colormaps.

Set the color array

A colormap is an array of colors that are indexed and then mapped to values. It is represented by a [Nx3] matrix, where N is the number of colors available in it. Each color is coded with three values corresponding its relative levels of red, green and blue. In Matlab, the colors are coded between 0 and 1. To get an example, type "jet" in the Matlab command window, you will get the default values for the "jet" colormap.

We offer two ways of creating this array of colors in Brainstorm: you can use standard color arrays (modulated in contrast and brightness) or define your own.

Advanced

Custom color array

To edit your own list of colors, use the menu "New..." at the end of the standard colormaps.

Set the color mapping

After defining the colors, we need to define how we want to map them with the values. The information necessary to do this color mapping is the value corresponding to first color and the value corresponding to the last color. The color indices will be scaled linearly between those extrema.

Colormap management

Remember that when you change any of the options above, it is saved in your user preferences. If you close Brainstorm and start it again, the colormap configuration stays the same.








Feedback: Comments, bug reports, suggestions, questions
Email address (if you expect an answer):


Tutorials/Colormaps (last edited 2015-07-16 14:59:35 by FrancoisTadel)