Zoom an image with a text

4 次查看(过去 30 天)
Silvia
Silvia 2011-7-1
Hello,
I have an image and I have written a text on it. When I zoom the image (axes continue being same size)text appears out of axes and I don't know why I can read the text if it's out of axes.What I want is zoom the image and see the text until text is out of axes. Thak you

回答(1 个)

Jan
Jan 2011-7-1
The property 'Clipping' triggers the visibility of objects outside the AXES area:
text(0.1, 0.1, 'Hello 1', 'Clipping', 'on');
text(0.1, 0.2, 'Hello 2', 'Clipping', 'off');
With enabled clipping the text disappears when zooming.

类别

Help CenterFile Exchange 中查找有关 Visual Exploration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by