EEGlab: Gracefully overwrite the default colormap
EEGlab has ‘jet’ as the default colormap. But jet is pretty terrible You see structure where there is none (e.g. rings in the third example). The problem: Eeglabs sets the default colormap to ‘jet’, thus overwriting a system wide default set e.g. by “` set(0,’DefaultFigureColormap’,parula); “` It does so by calling “`icadefs.m “` in various functions (e.g. topoplot, erpimage) and defining: “` DEFAULT_COLORMAP = ‘jet’ “` We want to overwrite the one line, but keep it forward compatible i.e. we do not want to copy the whole icadefs file, but just replace the single line whenever icadefs is…