Why do text objects on plots move outside axes boundaries when using the pan functionality?
이전 댓글 표시
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Animation에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



