color bar

Robert Oostenveld r.oostenveld at FCDONDERS.RU.NL
Tue May 5 17:45:55 CEST 2009


Hi Jim

I suspect the problem to be due to the rendering of Matlab.
Occasionally (esp when working on a remote linux maxhine through a VNC
connection) I also have problematic figures.

Please look at
 >> help opengl
It explains how you can change the renderer.

Some fieldtrip plotting functions have this as a configurable option,
including singleplotTFR and multiplotTFR. You can specify
cfg.renderer= 'painters', 'zbuffer' or 'opengl'. Please try zbuffer.

best regards,
Robert


On 30 Apr 2009, at 21:21, Jim Li wrote:

> Dear FTer:
>
> I wonder if anybody can tell me how to get the full color bar when
> plotting
> w/ "singleplotTFR" or "multiplotTFR".
>
> I ran the following commands:
> --------
> figure
> cfg              = [];
> cfg.layout       = '4D248.lay';
> cfg.ylim = [5 30]
> cfg.interactive  = 'yes';
> cfg.showlabels   = 'yes';
> cfg.colorbar         = 'yes'; cfg.channel='A2'
> singleplotTFR(cfg,TF)
> -----------
>
>
> But what I get on the right side of the figure is a colorbar w/ only
> half of the
> color (usually the cold colors like blue or green), and the numbers
> on the right
> side of the colorbar seem to be wrongly placed (see attachment). How
> can I
> get all the colors (both hot and cold) displayed in the colorbar?
>
> FYI, I controled the values of TF.powspctrm so that, for the channel
> displayed
> (A2), all values before time 0 is 3e-25, and all values after time 0
> is 1e-25.
> But the color bar is telling me that the blue should be 2e-25, which
> is totally
> wrong! It's as if something happened that moved the whole colorbar
> up by half
> of the data range, then cut off the top of it (i.e. the hot colors).
>
> In fact, I think Fig 3 of the online tutorial
> (http://fieldtrip.fcdonders.nl/tutorial/timefrequencyanalysis)
> probably suffered
> from the same problem.
>
>
> Thanks,
>
> Jim
>
> ----------------------------------
> The aim of this list is to facilitate the discussion between users
> of the FieldTrip  toolbox, to share experiences and to discuss new
> ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html
>  and http://www.ru.nl/neuroimaging/fieldtrip.
> <half_colorbar.TIF>

----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.



More information about the fieldtrip mailing list