<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><br></div><div>Hi everybody, </div><div><br></div><div><br></div><div>when trying to plot the results of the group-level source statistics with the option "mask", it seems that ft_sourceplot ignores the "mask" option and just plots all values of the t-statistic map.</div><div><br></div><div>I even changed manually the field data.mask  (taking logic values 0 / 1) to see whether that affects the plot, but nothing changes. Is there something obvious in the plotting function "ft_sourceplot" that I oversaw?</div><div><br></div><div>The result of statistics for differences between two source estimates has the following structure:</div><div><br></div><div>stat  = </div><div><div>     prob: [38x48x41 double]</div><div>    cirange: [38x48x41 double]</div><div>       mask: [38x48x41 logical]</div><div>       stat: [38x48x41 double]</div><div>        ref: [38x48x41 double]</div><div>        dim: [38 48 41]</div><div>     inside: [1x37163 double]</div><div>    outside: [1x37621 double]</div><div>        pos: [74784x3 double]</div><div>       freq: 22.4439</div><div>        cfg: [1x1 struct]</div></div><div><br></div><div>Then I interpolate the stat data to one normalized (to MNI space) mri from one subject</div><div><br></div><div><div>cfg = [];</div><div>cfg.parameter = 'all';</div><div><span style="font-size: 12pt;">statplot = ft_sourceinterpolate(cfg, stat, norm); </span></div></div><div><span style="font-size: 12pt;"><br></span></div><div><br></div><div>To plot only significant voxels I use <em style="padding: 0px; margin: 0px; font-family: Calibri, Geneva, Arial, Verdana, sans-serif; font-size: 15px; line-height: 22.5px; text-align: justify; background-color: rgb(255, 255, 255);">stat.mask</em><span style="font-family: Calibri, Geneva, Arial, Verdana, sans-serif; font-size: 15px; line-height: 22.5px; text-align: justify; background-color: rgb(255, 255, 255);"> (i.e. statplot.mask: values  0 and 1) to mask the data, but it is ignored when plotting:</span></div><div><br></div><div><div>cfg = [];</div><div>cfg.method        = 'ortho';</div><div>cfg.funparameter  = 'stat';</div><div>cfg.maskparameter = 'mask';</div><div>cfg.maskstyle = 'saturation';</div><div>cfg.opacitymap = 'rampup';</div><div>cfg.opacitylim =[0 1]</div><div>figure</div><div>ft_sourceplot(cfg, statplot);</div></div><div><br></div><div>The plot simply shows <i>all</i> values of the funparameter <i>statplot.stat</i></div><div><i><br></i></div><div>If I missed sthg, I would be grateful for any feedback. </div><div>Thanks!</div><div><i><br></i></div><div><i>A. Donda</i></div><div><br></div><div><br></div>                                        </div></body>
</html>