Correspondence of number commands in the gui with script


For quality control reasons I need to plot many figures of MEG source localizations at the same time, and I created a script that plots them using view_surface_data function.

However, that will only plot one figure and with a particular orientation of the cortical surface. If I click on the figure and press "7", it will duplicate the figure displaying both orientations. Since I have many figures, rather than doing it one by one manually, I was wondering if there is a code correspondance to what I do when I press "7". Hope that makes sense.

Many thanks in advance,


figure_3d('SetStandardView', hFig, {'left','right'});

This is documented in the Scripting tutorial:

You can find many examples of this kind in the example tutorial script:

1 Like