Keyboard shortcut to move DataCursor tooltip to previous/next data point

9 ビュー (過去 30 日間)
z8080
z8080 2017 年 10 月 14 日
コメント済み: z8080 2021 年 1 月 8 日
Once I select a data point in my plot using the Data Cursor tool, it would be very useful to be able to switch back and forth between consecutive data points using the keyboard. It seems, however, that the arrow keys (and a few other keys I've tried) do not advance the DataCursor to the previous/next data point, as I hoped. Is there any keyboard shortcut that can be defined for this?
Running Matlab R2016a on Windows 7.
Many thanks!
  7 件のコメント
Adam Danz
Adam Danz 2021 年 1 月 7 日
As of r2020b, keyboard control of datatips is supported by several plotting functions such as plot() line() and surf() but not by scatter(). See this answer for a workaround using scatter.
z8080
z8080 2021 年 1 月 8 日
Thank you!

サインインしてコメントする。

回答 (1 件)

Jaslyn Tan
Jaslyn Tan 2019 年 5 月 17 日
You are probably using 'brush' which is the first (and default) option in the large, red rectangle box. Switching to 'data tips' (second option from left, boxed in small red square) should allow you to toggle between data points using keyboard arrows. You have to mouse over that area to see the options. Hope this helps.Data Tips.jpg

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by