Back to the main page.
Bug 17 - topoplotTFR labels
Status | CLOSED FIXED |
Reported | 2010-01-13 09:33:00 +0100 |
Modified | 2010-12-08 11:01:58 +0100 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | All |
Operating System: | All |
Importance: | P5 normal |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Cristiano Micheli - 2010-01-13 09:33:28 +0100
Created attachment 1 channels' layout ----------------------------------------- The function topoplotTFR sometimes plots labels behind the topography. I guess it is because of subaxes partial superimposition. Attached the code and the layout file: Data can be found at the following address: http://www.sendspace.com/file/a6olp2 ----------------------------------------- % load the TFRHann variable load TFRhann31.mat % load the layout tmp = load('kurt_layout_realistic_common'); lay = tmp.layout; % plot the data % big figure figure('color','w','Position',[153 309 943 613]) % subaxis 1 axes('Position',[0.3 0.5 0.35 0.35]); cfg = []; cfg.xparam = 'time'; cfg.yparam = 'freq'; cfg.zparam = 'powspctrm'; cfg.channel = TFRhann.label{198}; cfg.zlim = [-1 4]; cfg.baseline = [-.8 -.0]; cfg.baselinetype = 'relative'; singleplotTFR(cfg, TFRhann); % subaxis 2 axes('Position',[0.3 0.1 0.35 0.35]); cfg = []; cfg.xparam = 'time'; cfg.yparam = 'freq'; cfg.zparam = 'powspctrm'; cfg.xlim = [0.2 0.4]; cfg.ylim = [5 24]; cfg.zlim = [-1 4]; cfg.electrodes = 'labels'; cfg.baseline = [-0.4 -0.2]; cfg.baselinetype = 'relative'; cfg.layout = lay; cfg.marker = 'labels'; figure,topoplotTFR(cfg, TFRhann);
Roemer van der Meij - 2010-01-13 13:15:55 +0100
Hi Cris, Could you include the first data-file as well (TFRhann31.mat)? For the moment, I can't see any reason why you did not get a warning by using cfg.electrodes, in the current svn version it's definitely set to renamen using checkconfig. Perhaps you use a different version? Or perhaps there are conflicts with your private topoplotER version (especially if you had one before the ft_ switch)? I'll have a look at the problem with the full data-set. Best, Roemer
Cristiano Micheli - 2010-01-13 13:26:27 +0100
(In reply to comment #1) Hi Roemer > Hi Cris, > Could you include the first data-file as well (TFRhann31.mat)? Please check: http://www.sendspace.com/file/a6olp2 You can download it from here, otherwise the attachment is too big for the bugzilla. > For the moment, I can't see any reason why you did not get a warning by using > cfg.electrodes, in the current svn version it's definitely set to renamen using > checkconfig. Perhaps you use a different version? Or perhaps there are > conflicts with your private topoplotER version (especially if you had one > before the ft_ switch)? I have the warning in effect, but this is a minor issue, now i corrected it and my script uses cfg.marker instead of cfg.electrodes > I'll have a look at the problem with the full data-set. > Best, > Roemer Ciao, Cristiano