필터 지우기
필터 지우기

Text output in subplot

조회 수: 24 (최근 30일)
as hz
as hz 2012년 9월 23일
Hi,
I have a graph composed of subplot (3x2) and I wish to add an extra data (results of calculations, 4 variables) instead of a graph at position (3, 2, 5).
How can I do it?
Thanks.

채택된 답변

Robert Cumming
Robert Cumming 2012년 9월 24일
ax = subplot(3, 2, 5);
text(0.5,0.5,countstr);
set ( ax, 'visible', 'off')

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 9월 23일
call subplot() as usual to create the axis for the text. text() the data into place. You might want to take advantage of http://www.mathworks.com/help/matlab/ref/text.html:
When specifying the string for a single text object, cell arrays of strings and padded string matrices result in a text object with a multiline string, while vertical slash characters are not interpreted as separators and result in a single line string containing vertical slashes.
  댓글 수: 1
as hz
as hz 2012년 9월 24일
Hi,
I used this example:
subplot(3, 2, 5);
text(0.5,0.5,countstr);
And I get the X and Y axis scales. How can they be removed?
Thanks

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by