Legend Toggle
Version 1.0.0.0 (3,37 KB) von
Matt Kindig
Toggle visibility of graphics objects by clicking on legend. Allows for custom callback function.
This function allows you to toggle the visibility of line/patch/surface objects, by clicking on the corresponding entry in the legend.
Function outputs a logical vector corresponding to the visibility of each handle object.
A custom callback can be specified to run after each object is toggled.
Currently, only supports line, patch, and surface objects. All objects must be parented to same axes.
Zitieren als
Matt Kindig (2025). Legend Toggle (https://www.mathworks.com/matlabcentral/fileexchange/37901-legend-toggle), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2010a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Graphics > Formatting and Annotation > Labels and Annotations > Legend >
- MATLAB > Graphics > Graphics Objects > Graphics Object Properties >
Mehr zu Legend finden Sie in Help Center und MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |