[FieldTrip] Missing Channel labels in Data browser
Philipp Spachtholz
Spachtholz at psy.lmu.de
Tue Aug 12 10:46:35 CEST 2014
Dear Katrin,
I had the same problem. This is what worked for me:
Apparently, at least in my case, the channel labels not showing up in
the databrowser resulted
from are wrong specification of the fontsize in ft_databrowser.
You have to locate the line that corresponds to your viewmode
('component' in my case, around line 1715)
and replace the
'FontSize', 18 to a relative value, e.g 0.02, so that the call to
plotting the text looks like this:
ft_plot_text(labelx(laysel), labely(laysel), opt.hdr.label(chanindx(i)),
'tag', 'chanlabel', 'HorizontalAlignment',
'right','interpreter','none','FontUnits','normalized','FontSize',0.02,'FontName',
'Arial');
I am very unsure about wether this works for other MATLAB versions but
you can give it a try.
Just make sure to make a backup of the ft_databrowser before you make
any changes there.
Best
Philipp
Am 8/10/2014 3:18 PM, schrieb Alik Widge:
> Not that I've heard, and it's still driving me a little bit nuts.
> Guys, I know that this is because I don't use old MATLAB, but it is
> going towards the end of 2014. 2012b and older are really not
> available for a lot of us, especially since our university licenses
> often force us onto newer versions. Any chance of a fix?
>
> Alik
>
> On Sunday, August 10, 2014, KatrinH Heimann <katrinheimann at gmail.com
> <mailto:katrinheimann at gmail.com>> wrote:
>
> Dear all! I found the conversation quoted below among last years posts. I have the same problem than Alik, I never see any channel labels on the y axis, also not in the "some" option. Has this problem ever been solved?
>
> Best
>
> Katrin
>
> Hi Alik,
>
> Using cfg.plotlabels = 'some', only plots several of the channel labels.
> Leaving it empty, or setting it to 'yes', will show all labels, is that
> what you intended?
>
> Additionally, right now we cannot guarantee compatibility with matlab
> R2012b onwards due to low level changes in several MathWorks functions.
> Please use a version older dan R2013a.
>
> Cheers,
> Roemer
>
>
> On Fri, Sep 27, 2013 at 9:57 PM, Alik Widge <alik.widge at gmail.com <http://mailman.science.ru.nl/mailman/listinfo/fieldtrip>> wrote:
>
> >/ I have pounded on this one from a few different angles and even gone and
> />/ looked at the source, and still can't quite figure out what I'm doing wrong.
> />/
> />/ I have a datafile from an eXimia TMS-EEG system. Right now, all I'm trying
> />/ to do is load it up and inspect the data a bit to get a sense of how badly
> />/ artifacted it is. So:
> />/
> />/ %%%%%%
> />/
> />/ cfg = [];
> />/ cfg.blocksize = 30; % num of seconds to display at once
> />/ cfg.continuous = 'yes'; % not yet cut into trials
> />/ cfg.plotlabels = 'some';
> />/ cfg.viewmode = 'vertical';
> />/ cfg.colorgroups = 'chantype';
> />/
> />/ cfg.dataset = [DataDir filesep EEGFile];
> />/ cfg.channel = {'EEG'};
> />/
> />/ ft_databrowser(cfg)
> />/
> />/
> />/ %%%%%%
> />/
> />/ This does 90% of what it ought to do -- it shows me the EEG channels (no
> />/ triggers or EOG), 30 second segments at a time. What it does *not* do is
> />/ label the channels along the y-axis so that I can readily tell which one is
> />/ Pz, F3, O1, etc., etc. I am pretty sure that's what cfg.plotlabels is
> />/ supposed to do, and yet, it does not. I've also tried doing this as
> />/ ft_databrowser(cfg,data), where I explicitly make sure that data.label
> />/ contains the correct channel names, and that *still* doesn't work.
> />/
> />/ I'm aware that this was marked as a bug before, but bugzilla shows it
> />/ closed long ago, before r7276 that I'm using I believe.
> />/
> />/ MATLAB r2013a on OS X, if it matters.
> />/
> />/ Am I simply misunderstanding what this cfg argument does or how to use it?
> />/
> />/
> />/ Alik Widge, MD, PhD
> />/ alik.widge at gmail.com <http://mailman.science.ru.nl/mailman/listinfo/fieldtrip>
> />/ (206) 866-5435
> />/
> />/
> />/ _______________________________________________
> />/ fieldtrip mailing list
> />/ fieldtrip at donders.ru.nl <http://mailman.science.ru.nl/mailman/listinfo/fieldtrip>
> />/ http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> />/
> /
>
>
> --
> Roemer van der Meij M.Sc.
> PhD Candidate
> Donders Institute for Brain, Cognition and Behaviour
> Centre for Cognition
> P.O. Box 9104
> 6500 HE Nijmegen
> The Netherlands
> Tel: +31(0)24 3655932
> E-mail:r.vandermeij at donders.ru.nl <http://mailman.science.ru.nl/mailman/listinfo/fieldtrip>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130930/3593ea68/attachment.html>
>
>
>
>
> --
> Sent from Gmail Mobile; apologies for the brevity
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140812/d3af86e2/attachment-0002.html>
More information about the fieldtrip
mailing list