MATLAB Answers

How to enable Data Tips in App.Designer in r2019b

조회 수: 31(최근 30일)
BSantos 7 May 2020
편집: Bálint Décsi 12 May 2020
I'm trying to include datacursor on my ui.axes in App.Designer but it just never shows.
I'm using Matlab R2019b Update4.
This is how it looks:
Do any of you have an idea how to fix this?
Thanks in advance!

  댓글 수: 1

Bálint Décsi
Bálint Décsi 12 May 2020
Did they add this funcionality in R2019b? Because as of version R2019a, Matlab App Designer UIFigures did not support mouse interactions. I recall they wanted to add it in an upcoming release, check in "Graphics support for App Designer" help page or something alike unless you are sure.

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


Nishant Gupta
Nishant Gupta 9 May 2020
In R2019b, data cursor mode is 'on' by default.
As I can see from the image attached that any plot is not there in the figure.
First plot something and then click on the curve, you can see the data at that point.

  댓글 수: 1

Aurelie Isebaert
Aurelie Isebaert 12 May 2020
I have the same problem: the data tips don't appear in the app.UIAxes, but they do appear in a separate figure window I let run beside it. As you can see in the figure, there is also no 'option' above on the right (next to 'pan' and 'zoom') to click 'datatips'. This option is available in the separate figure.
I inserted the enableDefaultInteractivity(app.UIAxes) at the end of the function but that doesn't do the trick either. Is there a solution to this or something I can verify?

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

Community Treasure Hunt

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

Start Hunting!

Translated by