color bar
Jim Li
megjim1 at GMAIL.COM
Wed May 6 17:37:17 CEST 2009
Hi Ingrid,
That's a nice suggestion. Thanks a lot for your help, :)
Jim
On Wed, 6 May 2009 17:15:37 +0200, Ingrid Nieuwenhuis
<ingrid.nieuwenhuis at DONDERS.RU.NL> wrote:
>Hi Jim,
>
>The reason that you see the blue for the low freq part where there's no data
>is because NaNs are plotted with the lowest color of the scale by Matlab.
>Earlier the NaN's where masked out automatically, but with the
>"cfg.renderer= 'zbuffer'; " opacity masking is not supported. So I'm afraid
>there is no way to both get the colorbar right and the NaN's masked out. But
>you could of course make two plots and combine in Photoshop ;)
>
>Best Ingrid
>
>> -----Original Message-----
>> From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On
>> Behalf Of Jim Li
>> Sent: Wednesday, May 06, 2009 5:04 PM
>> To: FIELDTRIP at NIC.SURFNET.NL
>> Subject: Re: [FIELDTRIP] color bar
>>
>> Yes, Robert,
>>
>> Changing to "cfg.renderer= 'zbuffer'; " did make the whole colorbar show
>> up
>> correctly. Although I also got a bunch of blue for the low frequency part
>> of
>> the wavelet singleplotTFR, which used to be just white area since there's
>> no
>> data calculated for those time-frequency bins due to wavelet's boundary
>> effect. But that's fine.
>>
>> Thank you very much, :)
>>
>> Jim
>>
>>
>> FYI, I'm using a 64bit WinXP. I saw the problem that you helped me solved
>> by
>> either working directly before the PC or Remote-Desktop to it.
>>
>>
>>
>> On Tue, 5 May 2009 17:45:55 +0200, Robert Oostenveld
>> <r.oostenveld at FCDONDERS.RU.NL> wrote:
>>
>> >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.
>>
>> ----------------------------------
>> 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.
>
>----------------------------------
>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.
----------------------------------
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