How to draw line with a mouse in the UI of the UIAxes in App Designer?
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
The MightySpaceQuin
le 4 Déc 2019
Réponse apportée : Adam Danz
le 4 Déc 2019
Using drawline() i have attached a callback function that allows a user to draw lines on the axes. Initially, clicking the button pops up a new window to carry out the drawing, and so I specified the axes: app.UIAxes. This does not seem to work, and I get the following error: "Error using images.roi.internal.ROI/parseInputs
ROI parent must be a valid Axes object.".
I am using R2019a of MATLAB.
0 commentaires
Réponse acceptée
Adam Danz
le 4 Déc 2019
It works fine in r2019b; there are quite a few limitations to UIAxes prior to r2019b which may be causing the problem.
function ButtonPushed(app, event)
% Draw line
drawline(app.UIAxes)
end
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Object Programming dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!