How can I plot text using normalized units?

조회 수: 55 (최근 30일)
John Williams
John Williams 2022년 2월 24일
댓글: John Williams 2022년 2월 28일
I have used the following commands:
subplot(2, 2, 1)
plot(y)
text('Units', 'Normalized', 'Position', [0.1, 0.1], 'text')
And get the following error message:
error using text
Too many non-property / value arguments.

채택된 답변

Walter Roberson
Walter Roberson 2022년 2월 24일
When you do not use the x, y, str triple, then you need to use the 'string' parameter name to designate the text to draw.
y = rand(1,20);
subplot(2, 2, 1)
plot(y)
text('Units', 'Normalized', 'Position', [0.1, 0.1], 'string', 'text to draw', )
  댓글 수: 10
Walter Roberson
Walter Roberson 2022년 2월 27일
My peak IDL usage was while RSI (Research Systems Incorporated) still owned it. It was about the time of the Visible Human Project, and there was very nice volume viewing going on. MATLAB's volume viewing feels much weaker.
John Williams
John Williams 2022년 2월 28일
I remember RSI. I started to use IDL in the mid 90's and liked the company. I had friends from Boulder who knew all of the people on staff. What kind of work do you do now?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by