How can I get the minimum and maximum value of the xaxis when I zoom in on a plot?
26 ビュー (過去 30 日間)
古いコメントを表示
Is it possible to define a callback when I zoom in on the plot and get the minimum and maximum x values from the plot? Kindly request you to give an example.
Thanks in Advance.
0 件のコメント
採用された回答
Image Analyst
2014 年 8 月 28 日
Have you looked at the xlim() function?
2 件のコメント
Image Analyst
2014 年 8 月 28 日
Yep, like I thought. But if evd.Axes or handles.axes1 is the current axes, you can simply to
newLim = xlim();
which is simpler. If it's not the current axes, you can do
newLim = xlim(handles.axes1);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Exploration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!