When zooming in the axes of the app designer, my text will go out of the axes, how to aviod this?
5 views (last 30 days)
Show older comments
rumin diao on 1 Jun 2022
Commented: Voss on 2 Jun 2022
like this. The rectangle represents the axes and the numbers represent text i added, when i zoom in the rectangle, those text will go out of the area instead of disappearing, why? What should i do to avoid this?
Benjamin Kraus on 1 Jun 2022
Edited: Benjamin Kraus on 1 Jun 2022
There is a Clipping property on text objects that is off by default. If you set the Clipping property to 'on' you will get the behavior your are expecting.
ax = axes;
t = text([0.1 0.2 0.3], [0.1 0.2 0.3], ["one", "two", "three"]);
With Clipping 'on'
ax = axes;
t = text([0.1 0.2 0.3], [0.1 0.2 0.3], ["one", "two", "three"],'Clipping','on');
More Answers (0)
Find more on Migrate GUIDE Apps 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!