How can I draw interactively a polygon on axes in App designer ?
조회 수: 12 (최근 30일)
이전 댓글 표시
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
답변 (2개)
Harshita Gupta
2019년 3월 28일
Hello,
If you are using version R2018b or earlier then try mapping the current point of a UIFigure to the UIAxes.Should probably help.
Pietro Prestininzi
2020년 2월 7일
Having the same problem here, version 2019b.
News on the topic?
댓글 수: 2
Anatole Jimenez
2020년 2월 7일
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!