Im inside of a callback function from a mouse click on a pop up menu that populates a graph. No matter what I do I can't get the data tips to not show when I mouse over, or click the graphs. I want the data tips and ability to select data points off. I realize I am in a function the uses a mouse click callback so I suppose I don't know if I even can do that. I've tried using datacursormode off but that didn't work either. Thanks in advance.

댓글 수: 4

Geoff Hayes
Geoff Hayes 2019년 5월 31일
Isaiah - please show us the code that you use to turns the data tips on and then how you turn them off again. Are you storing the data cursor mode object that is created when you turn the tips on?
Isaiah Slemons
Isaiah Slemons 2019년 5월 31일
That's my biggest issue. I never turn them on. It says in the source that they default to off but I am not experiencing that.
Lane
Lane 2020년 3월 4일
Did this problem ever get solved? Because I have the same problem. I never turn datatips on (or indeed use them) but my figures get littered with them.
Lane: I asked the same question here because the datatips were driving me nutty too. This solution works, for me but I have to type it before I click on any axes.
disableDefaultInteractivity(gca)

댓글을 달려면 로그인하십시오.

답변 (1개)

Apurvi Mansinghka
Apurvi Mansinghka 2020년 6월 18일
편집: Apurvi Mansinghka 2020년 6월 18일

0 개 추천

Hi,
As I understand you want to disable the data tips that occur while hovering mouse over the figures.
disableDefaultInteractivity(ax)
Above function allows to disable the default axes interactions or a custom set of axes interactions.
Refer the below link to understand the input parameters to the above function.

댓글 수: 1

Bjorn Gustavsson
Bjorn Gustavsson 2020년 8월 28일
Apurvi, could you please forward a whish for a more prominent placing of information about how to turn this feature off in the documentation.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

질문:

2019년 5월 31일

댓글:

2020년 8월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by