Hello,
Similarly to this thread: 2d disk connectivity plot from script, I'm having difficulty displaying a topography from a script by calling view_topography with a power spectrum file generated in Brainstorm. The call is:
view_topography(PsdFiles{f}, 'MEG', '2DSensorCap', [], 0, 'NewFigure')
and the error is:
Output argument "RowNames" (and maybe others) not assigned during
call to "figure_timefreq>GetFigureData".
Error in figure_timefreq (line 28)
eval(macro_method);
Error in figure_topo>GetFigureData (line 336)
[Time, Freqs, TfInfo, TF, RowNames] =
figure_timefreq('GetFigureData', hFig, TimeDef);
Looks like GetFigureData is not finding the iDS, because I presume it's not loaded in memory. But actually we get the same error even if the same file is already displayed (through the GUI).
I've also wanted a few times to just plot from a variable. But it requires a DataFile otherwise we get the error:
Expected one output from a curly brace or dot indexing expression,
but there were 0 results.
Error in panel_display>UpdatePanel (line 400)
switch
lower(GlobalData.DataSet(iDS).Timefreq(iTimefreq).Measure)
So the only way I've succeeded in the past was to create a fake data file (not TF) and display the topo from the GUI. I hope there is a simpler way.
Thanks!
Marc