How to move data tip in R2025b? (Or, how to restore legacy data tip behavior)
显示 更早的评论
In previous versions of matlab, an existing data tip would move to a new point whenever I clicked on a new point in a graph or image, and I could also use the arrows on the keyboard to move the data tip one pixel at a time. In R2025b I get a new data tip each time I click somewhere in a plot, and there does not seem to be any way to move the data tips to a different point. How can I make the data tips behave like they did before? I never want to have hundreds of data tips in a plot, so holding shift while clicking in order to create a second data tip is not a problem.
采纳的回答
更多回答(2 个)
Matt J
2025-11-17
You can activate the old-style figure toolbar exploration buttons, e.g.,
addToolbarExplorationButtons(gcf)
That seems to have the old datacursor behavior.
8 个评论
Kristin Kaspersen
2025-11-17
Matt J
2025-11-17
I haven't really seen any taskbar problems in WIn 11, nor do I really see how that encumbers the solution I proposed. The solution doesn't really require you to open more figure windows than you did originally.
Kristin Kaspersen
2025-11-17
Kristin Kaspersen
2025-11-18
Matt J
2025-11-18
Strange. Well, it definitely shouldn't do that (and doesn't for other people), so you might want to look into it.
Kristin Kaspersen
2025-11-19
Matt J
2025-11-19
OK, I think I managed to reprdouce it. In any case, did you try my other answer? It restores the old datatip behavior entirely.
Catalytic
2025-11-17
0 个投票
there does not seem to be any way to move the data tips to a different point
Hold the shift key down while you press the arrow keys.
5 个评论
Kristin Kaspersen
2025-11-18
Catalytic
2025-11-20
I don't think that's possible. It looks quite intentional in the design that you cannot jump the data tip to another curve. Otherwise, if you did want to step along a single fixed curve, you would end up doing a lot of gymnastics with the arrow keys, depending on the shape of the curve.
Kristin Kaspersen
2025-11-20
Matt J
2025-11-20
In previous versions of Matlab, you could move the data tip to a different curve by clicking,
By clicking perhaps, but with the arrow keys?
Catalytic
2025-11-20
Also possibly useful -- I find in R2025b that when you hold down the shift key, any data tip you place will self-delete once the mouse button is released. This works both in images and line plots.
It doesn't give you the exact same experience as before, but it does provide a way to probe multiple points without the plot getting cluttered with data tips, and without the extra key strokes needed to explicitly delete data tips.
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
