MATLAB Answers

How to enable Data Tips in App.Designer in r2019b

65 views (last 30 days)
BSantos
BSantos on 7 May 2020
Commented: Abhishek Sahoo on 28 Dec 2020
Hi!
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 Comment

Bálint Décsi
Bálint Décsi on 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.

Sign in to comment.

Answers (1)

Nishant Gupta
Nishant Gupta on 9 May 2020
Hi,
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.

  3 Comments

Aurelie Isebaert
Aurelie Isebaert on 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?
Thanks!
Nick Bennett
Nick Bennett on 15 Oct 2020
When working with appdesigner in Matlab 2020a, I am not seeing any data cursor enabled for axes in my user interface. Here I have circled where I was expecting to see the data cursor icon when hovering mouse over the axes.
When working in GUIDE, this functionality was automatically enabled. Here is an example for one my my GUIDE applications.
I sense from the earlier post that data cursor functionality should be enabled by default?
Also, would this issue be related to my not being able to right-click and open a Context Menu? I am also seeing this issue.
Suggestions?
Abhishek Sahoo
Abhishek Sahoo on 28 Dec 2020
Hi Nishant,
I am having a little similar but a different issue. I can add a new datatip to my image displayed on a MATLAB app. But I am unable to place multiple datatips, which is a requirement for my app. Usually on a MATLAB figure, I can simply place as many datatips I want, but in the AppDesigner environment, I can only place one datatip at max. Can you please help me figure out how to place multiple datatips? Thank you.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by