Why do text objects on plots move outside axes boundaries when using the pan functionality?
Show older comments
A text object, placed on a plot or a figure using the TEXT command, moves outside the axes boundaries when the figure is panned horizontally or vertically. While the rest of the image or graph gets clipped at the ends of the axes while panning, the text objects do not.
For example, the following code will plot a graph, place a text object on the graph and set the pan mode to on.
figure; plot(1:10);
text(5, 5, 'Sample Text');
pan on;
When this figure is panned using the mouse, the text object is visible outside of the axes boundaries whereas the rest of the graph conforms to these axes boundaries.
Accepted Answer
More Answers (0)
Categories
Find more on Animation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


