LineVisible
Version 1.1.0 (2,71 ko) par
Allen
Toggle visibility or delete plot objects by interacting with the item names displayed in a legend.
Allows the user to interact with items displayed within plot legends to easily toggle visibility (left mouse-click) or delete from the axes (right mouse-click). This function uses publicly available code to toggle visibility using the ItemHitFcn callback for legend objects. However, it also utilizes undocumented MATLAB functionality to create context menus and delete unwanted items from the legend's parent axes.
Designed to work with plots generated using plot, loglog, semilogx, and semilogy, it will likely work with most other plot functions that incorporate the use of legends.
This function also work in conjuction with the DragDataTip (v4.4+) function also available on File Exchange.
Citation pour cette source
Allen (2025). LineVisible (https://www.mathworks.com/matlabcentral/fileexchange/111950-linevisible), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2022a
Compatible avec les versions R2016a et ultérieures
Plateformes compatibles
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.1.0 |