Move colorbar location to the east in tiled layout figure

조회 수: 9(최근 30일)
Eric Escoto
Eric Escoto 2020년 9월 28일
답변: VBBV 2021년 10월 14일
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.

답변(2개)

Sindar
Sindar 2020년 9월 29일
does this work:
cb = colorbar;
cb.Layout.Tile = 'east';
(from the colorbar documentation)

VBBV
VBBV 2021년 10월 14일
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!

Translated by