Text limited on Axes

8 views (last 30 days)
Lin
Lin on 17 Jun 2011
I am programming a GUI which has a Axes on it. I want to plot texts on the Axes so I use TEXT function.
The problem is that when I zoom in the Axes, the text that I only want to display on axes will move outside of Axes, displaying on other part of GUI, which I do not want to happen!
Thank you for your time

Accepted Answer

Walter Roberson
Walter Roberson on 17 Jun 2011
Set the Clipping property of the text object to be 'on'
See the "text properties" reference material for more information.
  1 Comment
Lin
Lin on 17 Jun 2011
Thank you! It works well!

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!