Move colorbar location to the east in tiled layout figure

9 views (last 30 days)
Eric Escoto
Eric Escoto on 28 Sep 2020
Answered: VBBV on 14 Oct 2021
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 (2)

Sindar
Sindar on 29 Sep 2020
does this work:
cb = colorbar;
cb.Layout.Tile = 'east';
(from the colorbar documentation)

VBBV
VBBV on 14 Oct 2021
t = tiledlayout(2,3)
t.Tilespacing = 'compact'
Try also this

Community Treasure Hunt

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

Start Hunting!