Colorbar for a Tiled Layout

조회 수: 33 (최근 30일)
Hans H
Hans H 2023년 3월 23일
편집: Adam Danz 2023년 3월 23일
Currently have a 1x2 tiledlayout. I have the colorbar plotted below the 2nd plot using colorbar('southoutside')
Question:
How can I stretch it out so that the colorbar is underneath the plot

답변 (1개)

Adam Danz
Adam Danz 2023년 3월 23일
편집: Adam Danz 2023년 3월 23일
Are you asking how to extend the colorbar to be under both axes?
Set the colorbar's Layout tile to south.
tcl = tiledlayout(1,2);
nexttile()
nexttile()
cb = colorbar();
cb.Layout.Tile = 'south';

카테고리

Help CenterFile Exchange에서 Colorbar에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by