[FieldTrip] setting colormap for ft_multiplotTFR not working + easy fix

van Lier Ben ben.vanlier at bsse.ethz.ch
Thu Sep 5 12:47:07 CEST 2013


Hi all,

I like to have my spectra in the hot colormap instead of the matlab default jet (jet is bad - http://www.jwave.vt.edu/%7Erkriz/Projects/create_color_table/color_07.pdf )

cfg.colormap = hot(256);
works well for all the plots except multiplot. i get this error:

-------------
Error using hg.axes/set
The name 'colormap' is not an accessible property for an instance of class 'axes'.

Error in ft_multiplotTFR (line 501)
  set(gca,'colormap',cfg.colormap);
--------------

gca should be gcf :)

cheers
Ben





More information about the fieldtrip mailing list