필터 지우기
필터 지우기

Location of legend on tiledlayout does not match with the plot

조회 수: 1 (최근 30일)
Cakil
Cakil 2023년 7월 28일
댓글: Cakil 2023년 7월 31일
Hello,
I have a tiledlayout and I want to locate my legend outside south and in a box off format. However whatever I do, it is always located on the right corner. How can I fix it?
leg = legend('18', '19', '21');
leg.Location="southoutside";
leg.Orientation="horizontal";
legend boxoff
Thank you in advance for your time.

채택된 답변

Voss
Voss 2023년 7월 28일
% some plots
t = tiledlayout(3,3);
for i = 1:9
nexttile(t)
plot(rand(10,3));
end
% make the legend
leg = legend('18', '19', '21');
leg.Layout.Tile = 'south';
leg.Orientation="horizontal";
legend boxoff

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by