Is It Possible to Add Pop-Up Text When Clicking on a Specific Line In Plot
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, I am running large Monte Carlo sets and create a summary plot for Downrange vs Altitude for all runs in one figure/plot. I am wondering if there is a way I can make it so when I click on a specific line in that figure/plot it will tell me the run number for that specific line on the downrange vs. altitude plot.
Or, to put that another way, can you add custom "pop-up text" that appears when clicking on a plot line?
Thanks!
0 Commenti
Risposte (1)
Stephen23
il 13 Set 2017
Modificato: Stephen23
il 13 Set 2017
Sure: add a ButtonDownFcn function for each line object:
Within that function you can create some dialog box or add/change text inside the axes, whatever suits your needs best. Note that you do not need to create a totally separate function for each line but can simply pass an integer or other identifier (e.g. the run number) as the third input to the function.
2 Commenti
Vedere anche
Categorie
Scopri di più su Graphics Object Programming in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!