How can I draw interactively a polygon on axes in App designer ?
Afficher commentaires plus anciens
Hello,
I am making an app on App designer and I need to be able to draw interactively a polygon on an image display on an axes.
I already tried imploy, roipoly and drawpolygon functions with 'app.UIAxes' as 'ax' parameter but none of them seem to be accepted by App designer.
Can someone help me ?
Thanks,
Anatole Jimenez
3 commentaires
Matt J
le 22 Mar 2019
Please show us (copy/paste) the error messages that you got.
Anatole Jimenez
le 22 Mar 2019
Anatole Jimenez
le 22 Mar 2019
Réponses (2)
Harshita Gupta
le 28 Mar 2019
0 votes
Hello,
If you are using version R2018b or earlier then try mapping the current point of a UIFigure to the UIAxes.Should probably help.
1 commentaire
Anatole Jimenez
le 28 Mar 2019
Pietro Prestininzi
le 7 Fév 2020
0 votes
Having the same problem here, version 2019b.
News on the topic?
2 commentaires
Anatole Jimenez
le 7 Fév 2020
Hello Pietro,
Unfortunately I didn't find any solution at that time so I used an alternative.
I just open a new figure window when calling for a draw and repeat my figure on it.Then I use the function drawpolygon as it works on non-GUI figure.
Pietro Prestininzi
le 7 Fév 2020
thanks!
Catégories
En savoir plus sur Develop Apps Programmatically dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!