How can I plot text using normalized units?

62 views (last 30 days)
I have used the following commands:
subplot(2, 2, 1)
text('Units', 'Normalized', 'Position', [0.1, 0.1], 'text')
And get the following error message:
error using text
Too many non-property / value arguments.

Accepted Answer

Walter Roberson
Walter Roberson on 24 Feb 2022
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)
text('Units', 'Normalized', 'Position', [0.1, 0.1], 'string', 'text to draw', )
John Williams
John Williams on 28 Feb 2022
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?

Sign in to comment.

More Answers (0)




Community Treasure Hunt

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

Start Hunting!

Translated by