Move colorbar location to the east in tiled layout figure

I have a fugure that looks horrible due to the colorbar overlaying the tiledlayout.
Any ideas on how to move the colorbar to the east so it's outside of the figure?
Thanks.

Réponses (1)

does this work:
cb = colorbar;
cb.Layout.Tile = 'east';
(from the colorbar documentation)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by