Edit Brainstorm figures in matlab

Dear Francois,

I have some trouble in editing Brainstorm figures (in this case, source activations) with matlab. Specifically, I would like to modify the colorbar dimension and ticks (too many ticks are displayed). To do that, I right-click on the figure, and click on Figure -> Plot edit toolbar. I then click on the ‘edit plot’ button in the edit toolbar, and double-click on the colorbar to open the property editor. At this point, the property editor starts to open but gets frozen, while on the matlab command I have the following alerts:
GetWindowRect failed
child window is invalid
GetWindowRect failed
child window is invalid
GetWindowRect failed
child window is invalid
GetWindowRect failed
child window is invalid
GetWindowRect failed
child window is invalid
GetWindowRect failed
child window is invalid

What can I do? Is there any configuration option that I should (de)select to prevent these problems? I am using Windows XP, but I had similar behaviour on Linux Ubuntu.

Otherwise, is there another way to modify the colorbar?

Thanks in advance,

Marco

Hi Marco,

You can directly manipulate the properties of the “axes” object used to represent the colorbar.
To find the colorbar handle in the figure (use “hFig=gcf” to get the current figure):
hColorbar = findobj(hFig, ‘-depth’, 1, ‘Tag’, ‘Colorbar’);

Then you can edit the properties YTick and YTickLabel: set(hColorbar, ‘YTick’, …, ‘YTickLabel’, …)
Search the Matlab help pages for the Tick user manual, or the function bst_colormaps>ConfigureColorbar() for inspiration.

Cheers,
Francois

Thanks it works!

Marco

[QUOTE=Francois;6262]Hi Marco,

You can directly manipulate the properties of the “axes” object used to represent the colorbar.
To find the colorbar handle in the figure (use “hFig=gcf” to get the current figure):
hColorbar = findobj(hFig, ‘-depth’, 1, ‘Tag’, ‘Colorbar’);

Then you can edit the properties YTick and YTickLabel: set(hColorbar, ‘YTick’, …, ‘YTickLabel’, …)
Search the Matlab help pages for the Tick user manual, or the function bst_colormaps>ConfigureColorbar() for inspiration.

Cheers,
Francois[/QUOTE]