I'm creating a tiled layout with several graphs that all relate to a single set of data. The data has say a dozen common properties, for example, the specimen name, the date, the size of the specimen, etc.
In one of the tiles, I'd really like to display these as a block of text intead of a chart.
Is it possible to do that? How? I was thinking of using something like fprintf to create the formatted text.

 채택된 답변

Star Strider
Star Strider 2023년 11월 13일

0 개 추천

One approach —
x = 0:99;
y = randn(3,100);
figure
tiledlayout(2,2)
for k = 1:3
nexttile
plot(x, y(k,:))
grid
xlabel('X')
ylabel("Y")
title("Plot "+k)
end
nexttile
text(0.5,0.5, sprintf('Your\ntext\nhere'))
Ax = gca;
Ax.Visible = 0;
.

댓글 수: 2

Jim McIntyre
Jim McIntyre 2023년 11월 13일
Perfect! Thanks.
Star Strider
Star Strider 2023년 11월 13일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Labels and Annotations에 대해 자세히 알아보기

제품

릴리스

R2022a

질문:

2023년 11월 13일

댓글:

2023년 11월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by