[FieldTrip] baselinetype decibel and plotting error

van Lier Ben ben.vanlier at bsse.ethz.ch
Tue Nov 25 13:43:40 CET 2014


I would like to plot my data in decibel. It works fine when running singleplotTFR, however I get an error when i use the plot interactivity to select a time/freq range within the singleplotTFR. The resulting topoplot has no color (it does show the contourlines of the data) and the layout outline is stretched (should be square).

running topoplotTFR directly works fine and using the other baselinetypes is also no problem. the error is only when interacting with a spectrogram in decibel.

Error using surf (line 75)
X, Y, Z, and C cannot be complex

Error in ft_plot_topo (line 251)
  h = surf(Xi-deltax/2,Yi-deltay/2,zeros(size(Zi)), Zi, 'EdgeColor', 'none', 'FaceColor', shading);

Error in topoplot_common (line 704)

Error in ft_topoplotTFR (line 186)
[cfg] = topoplot_common(cfg, varargin{:});

Error in ft_singleplotTFR>select_topoplotTFR (line 579)
ft_topoplotTFR(cfg, varargin{:});

Error in ft_select_range>evalCallback (line 325)
    feval(funhandle, funargs{:}, val, cmenulab);

Error in ft_select_range (line 159)
          evalCallback(callback, userData.range);

Error while evaluating figure WindowButtonDownFcn

its not the end of the world, but its such a nice feature to have...

thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20141125/bb011e8c/attachment-0001.html>

More information about the fieldtrip mailing list