Clear Filters
Clear Filters

Zoom an image with a text

4 views (last 30 days)
Silvia
Silvia on 1 Jul 2011
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

Answers (1)

Jan
Jan on 1 Jul 2011
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.

Categories

Find more on Visual Exploration in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!