<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.45pt 841.7pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=blue style='word-wrap: break-word;-webkit-nbsp-mode: space;
-webkit-line-break: after-white-space'>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Julian,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Yes indeed plotting with unevenly spaced
axis is problematic in Matlab. The problem lies in the image (and imagesc) Matlab
functions that singleplotTFR and multiplotTFR call. These functions assume evenly
spaced axis, and they just interpolate linearly between lowest and highest
value. Therefore you cannot trust the values next to the axis when you look at
the blobs, because they can be totally wrong (which you will see if you change
the ylims, then the blobs shift). To get around this we used uimage and
uimagesc in fieldtrip, which works around this problem by making new axis
before calling image and imagesc. This was hard to implement in the current
version of multiplotTFR, so there we only give a warning (we’re working
on restructuring the plotting functions, so in the future hopefully this will
be also implemented in the multiplot functions). So although everything seems
to be going fine in multiplot, you can not trust the axis there, because they
are linearly interpolated!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>So for the error in the singleplot
function, there something is not going right when making the new axis. We got
the uimage and uimagesc functions as free functions from the matlabcentral
fileexchange (see url in the code). You could try to debug, and see why the new
axis making doesn’t work. I hope this helps to solve the problem, if not
let me know, I could try to help then.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Best Ingrid<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName
w:st="on">FieldTrip discussion list</st1:PersonName>
[mailto:FIELDTRIP@NIC.SURFNET.NL] <b><span style='font-weight:bold'>On Behalf
Of </span></b>Julian Keil<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, May 26, 2009 9:52
AM<br>
<b><span style='font-weight:bold'>To:</span></b> FIELDTRIP@NIC.SURFNET.NL<br>
<b><span style='font-weight:bold'>Subject:</span></b> [FIELDTRIP] TFR plot
uneven y-axis spacing</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi everyone,<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I performed a TFR-analysis with unevenly spaced frequency steps
(cfg.foi=[10.^(log10(2):((log10(100)-log10(2))/35):log10(100))];)<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Now, when I try to plot the results with multiplotTFR, I get the
warning, that (one of the axis) is/are not evenly spaced. Nonetheless, the
multiplotTFR works fine. <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>The Probem arises, when I try to select single (or a number) of sensors
to be plotted. I then get the following error message:<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<div>

<p class=MsoNormal><font size=3 color="#ff0606" face="Times New Roman"><span
style='font-size:12.0pt;color:#FF0606'>??? Attempted to access c(22,1); index
out of bounds because size(c)=[21,101].</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 color="#ff0606" face="Times New Roman"><span
style='font-size:12.0pt;color:#FF0606'>Error in ==> uimage at 128</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 color="#ff0606" face="Times New Roman"><span
style='font-size:12.0pt;color:#FF0606'>          
 ce(j,i) = c(indi(end), indj(end));</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 color="#ff0606" face="Times New Roman"><span
style='font-size:12.0pt;color:#FF0606'>Error in ==> uimagesc at 50</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 color="#ff0606" face="Times New Roman"><span
style='font-size:12.0pt;color:#FF0606'>    hh =
uimage(varargin{:},'CDataMapping','scaled');</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 color="#ff0606" face="Times New Roman"><span
style='font-size:12.0pt;color:#FF0606'>Error in ==> singleplotTFR at 282</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 color="#ff0606" face="Times New Roman"><span
style='font-size:12.0pt;color:#FF0606'>h = uimagesc(data.(cfg.xparam)(xidc),
data.(cfg.yparam)(yidc), TFR, [zmin,zmax]);</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 color="#ff0606" face="Times New Roman"><span
style='font-size:12.0pt;color:#FF0606'>Error in ==> plotSelection at 343</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 color="#ff0606" face="Times New Roman"><span
style='font-size:12.0pt;color:#FF0606'>          
    singleplotTFR(new_cfg, userData.data);</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 color="#ff0606" face="Times New Roman"><span
style='font-size:12.0pt;color:#FF0606'>??? Error while evaluating figure
WindowButtonUpFcn</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 color="#010000" face="Times New Roman"><span
style='font-size:12.0pt;color:#010000'>Is there any way to work around this (I
already tried defining the y-axis with cfg.ylim)?</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 color="#010000" face="Times New Roman"><span
style='font-size:12.0pt;color:#010000'>Thanks a lot</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 color="#010000" face="Times New Roman"><span
style='font-size:12.0pt;color:#010000'>Julian</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<span style='orphans: 2;text-align:auto;widows: 2;-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0;word-spacing:0px'><span
style='orphans: 2;widows: 2;-webkit-border-horizontal-spacing: 0px;-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;word-spacing:0px'><span style='orphans: 2;
widows: 2;-webkit-border-horizontal-spacing: 0px;-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;word-spacing:0px'>

<div apple-content-edited=true>

<div style='word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space'>

<div style='word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space'>

<div style='word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space'>

<div>

<p class=MsoNormal><span class=apple-style-span><b><font size=2 color=black
face=Helvetica><span style='font-size:10.0pt;font-family:Helvetica;color:black;
font-weight:bold'>Dipl. Psych. Julian Keil</span></font></b></span><font
size=1 color=black face=Helvetica><span style='font-size:9.0pt;font-family:
Helvetica;color:black'><o:p></o:p></span></font></p>

</div>

<div>

<div>

<p class=MsoNormal><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><i><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black;font-style:italic'>OBOB-Lab</span></font></i><font
size=1 color=black face=Helvetica><span style='font-size:9.0pt;font-family:
Helvetica;color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><st1:place w:st="on"><st1:PlaceType w:st="on"><font size=1
  color=black face=Helvetica><span style='font-size:9.0pt;font-family:Helvetica;
  color:black'>University</span></font></st1:PlaceType><font size=1
 color=black face=Helvetica><span style='font-size:9.0pt;font-family:Helvetica;
 color:black'> of <st1:PlaceName w:st="on">Konstanz</st1:PlaceName></span></font></st1:place><font
size=1 color=black face=Helvetica><span style='font-size:9.0pt;font-family:
Helvetica;color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black'>Department of Psychology<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><st1:address w:st="on"><st1:Street w:st="on"><font size=1
  color=black face=Helvetica><span style='font-size:9.0pt;font-family:Helvetica;
  color:black'>P.O. Box</span></font></st1:Street><font size=1 color=black
 face=Helvetica><span style='font-size:9.0pt;font-family:Helvetica;color:black'>
 D23</span></font></st1:address><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black'>78457 <st1:City
w:st="on"><st1:place w:st="on">Konstanz</st1:place></st1:City><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><st1:country-region w:st="on"><st1:place w:st="on"><font
  size=1 color=black face=Helvetica><span style='font-size:9.0pt;font-family:
  Helvetica;color:black'>Germany</span></font></st1:place></st1:country-region><font
size=1 color=black face=Helvetica><span style='font-size:9.0pt;font-family:
Helvetica;color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><b><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black;font-weight:bold'>Tel</span></font></b><font
size=1 color=black face=Helvetica><span style='font-size:9.0pt;font-family:
Helvetica;color:black'>: ++49 - (0)7531 - 88 42 50<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><b><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black;font-weight:bold'>Fax</span></font></b><font
size=1 color=black face=Helvetica><span style='font-size:9.0pt;font-family:
Helvetica;color:black'>: ++49 - (0)7531 - 88 28 91<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><b><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black;font-weight:bold'>Email: </span></font></b><span
class=apple-style-span><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black'><a
href="mailto:julian.keil@uni-konstanz.de">julian.keil@uni-konstanz.de</a></span></font></span><font
size=1 color=black face=Helvetica><span style='font-size:9.0pt;font-family:
Helvetica;color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><b><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black;font-weight:bold'>Homepage</span></font></b><font
size=1 color=black face=Helvetica><span style='font-size:9.0pt;font-family:
Helvetica;color:black'>: <a href="http://www.uni-konstanz.de/obob">http://www.uni-konstanz.de/obob</a><o:p></o:p></span></font></p>

</div>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black'><o:p> </o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black'></span><o:p> </o:p></span></font></p>

</div>

<p class=MsoNormal><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black'></span><o:p> </o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'></span><o:p> </o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

</div>

</body>

</html>
<p>----------------------------------</p>
<p>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.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>
<p>----------------------------------</p>
<p>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.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>