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 で Axes Appearance についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



