如何让对datacursormode不可见的行(How to make line invisible to datacursormode)

编程入门 行业动态 更新时间:2024-10-27 00:35:02
如何让对datacursormode不可见的行(How to make line invisible to datacursormode)

我有一个应用程序,在光标位置创建行。 当我输入datacursormode来创建数据datatips ,它会在光标位置datatips的行上创建。

我想知道如何将它们从datacursormode ,但不要让它们不可见。

I have an application that create lines on the cursor position. When I enter the datacursormode to create datatips, it create on the lines that follow the cursor position.

I was wondering how to remove them from being visible to the datacursormode, but don't making them invisible.

最满意答案

要解决它,请关闭HitTest句柄。

即,该行由plot或line命令创建,然后在其末尾添加以下对值:

plot(…,'HitTest','off'); line(…,'HitTest','off');

这将使该行对datacursormode不可见。

To solve it, make its handle HitTest off.

I.e, the line is created by a plot or line command, then add the following pair value at its end:

plot(…,'HitTest','off'); line(…,'HitTest','off');

This will make the line invisible for the datacursormode.

更多推荐

本文发布于:2023-07-15 21:52:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1119296.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:datacursormode   line   invisible

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!