3D graph interactive control using checkboxes
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Camille Fong
il 4 Gen 2018
Modificato: Camille Fong
il 9 Gen 2018
I have a 3D graph and I would like to allow the user to control the visibility of certain elements (i.e labels,nodes and edges) by adding checkboxes. How do I start ?
Thank you.
1 Commento
Risposta accettata
Benjamin Kraus
il 5 Gen 2018
If you are using a recent MATLAB release, you may be able to get the functionality you are looking for using the ItemHitFcn built-in to the legend.
There is an example in the documentation that shows how to use ItemHitFcn to enable clicking on legend entries to toggle the visibility of items in your plot. Check it out here: Create Interactive Legends Using Callbacks.
2 Commenti
Più risposte (1)
Camille Fong
il 8 Gen 2018
Modificato: Camille Fong
il 8 Gen 2018
2 Commenti
Benjamin Kraus
il 9 Gen 2018
I'm not sure why rotating your graph would have any effect on the Legend or ItemHitFcn.
Can you give more details, for example:
- What is preventing you from clicking on the legend after rotating the graph? What is happening when you try to click on the legend?
- What release of MATLAB are you using?
- Maybe show some example code?
Vedere anche
Categorie
Scopri di più su Legend 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!