Getting ginput to read axes on an appdesigner GUI
15 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Randall Poe
il 1 Lug 2022
Commentato: Bruce Rodenborn
il 19 Gen 2024
I am trying to use ginput() on a GUI that I am building with appdesigner. The problem is that when I call ginput(), it creates a new figure window and then acts on that window, instead of on my GUI.
I've tried preceding it with a call to axes, i.e.
axes(app.ImageAxes);
[x, y] = ginput(1);
But that has the same effect, it still creates a new figure window and then puts the cross hairs on the new window.
What is the proper way to get ginput() to read from the axes in my GUI?
I just upgraded today so I am running in R2022a.
0 Commenti
Risposta accettata
Benjamin Thompson
il 1 Lug 2022
Modificato: Adam Danz
il 7 Ago 2022
Here is a previous discussion on this topic:
2 Commenti
Bruce Rodenborn
il 19 Gen 2024
How could this work? The whole point is to keep ginput focused on a the APP and this references a MATLAB figure window.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Visual Exploration in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!