3D graph interactive control using checkboxes
10 ビュー (過去 30 日間)
古いコメントを表示
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.
採用された回答
Benjamin Kraus
2018 年 1 月 5 日
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 件のコメント
その他の回答 (1 件)
Camille Fong
2018 年 1 月 8 日
編集済み: Camille Fong
2018 年 1 月 8 日
2 件のコメント
Benjamin Kraus
2018 年 1 月 9 日
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?
参考
カテゴリ
Help Center および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!