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.

Answers (1)

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

Asked:

on 28 Sep 2020

Answered:

on 29 Sep 2020

Community Treasure Hunt

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

Start Hunting!