- http://www.mathworks.com/matlabcentral/fileexchange/29140-move-a-3d-object-with-mouse-in-a-traditional-4-view-window
- http://www.mathworks.com/matlabcentral/fileexchange/29022-plotshift-m
- http://www.mathworks.com/matlabcentral/fileexchange/23304-moveit2-move-a-graphical-object-with-the-mouse
Interactive plot
1 回表示 (過去 30 日間)
古いコメントを表示
Hi everyone I was wondering, lets say we have a gui that at some point will generate a plot. Is there a way to somehow add the ability to manipulate that plot, for example use the muse to grab and move it, and at the same time keep track of the its changes in a variable?
0 件のコメント
採用された回答
Jan
2011 年 12 月 5 日
There are several related submissions in the FEX:
I assume, they conatin enough code, which can be re-used for your purpose.
0 件のコメント
その他の回答 (1 件)
Walter Roberson
2011 年 12 月 5 日
Grabbing a plot and moving it (within a fixed axes drawing area) is implemented by changing the XLim and YLim properties of the axes (see also the xlim() and ylim() commands).
You can get the current XLim and YLim properties before you update the plot, and then after the data update you can apply the limits again.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!