You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Matt Kindig (2026). Legend Toggle (https://www.mathworks.com/matlabcentral/fileexchange/37901-legend-toggle), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (3.37 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
