[FieldTrip] ft_neighbourplot does not plot new connections in 3D

Mikołaj Magnuski imponderabilion at gmail.com
Tue Aug 20 00:54:49 CEST 2013


Hi FieldTrippers!

just a short note in case it wasn'r reported before:
ft_neighbourplot with option .enableedit = 'on' (the bleeding option)
plots new connections (new - that means click-created) only as 2D
projections even if everything else is plotted in 3D.

changing lines 286 - 287 to something like:
    if size(proj,2) == 2
        Coord = {X, Y};
    elseif size(proj,2) > 2
        Z = [proj(curSensId,3) proj(lastSensId,3)];
        Coord = {X, Y, Z};
    end
    hl(curSensId, lastSensId) = line(Coord{:}, 'color', 'r');
    hl(lastSensId, curSensId) = line(Coord{:}, 'color', 'r');

fixes this problem.


Regards,
Mikołaj Magnuski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130820/42a5020a/attachment.html>


More information about the fieldtrip mailing list