Legend Toggle
版本 1.0.0.0 (3.4 KB) 作者:
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.
引用格式
Matt Kindig (2024). Legend Toggle (https://www.mathworks.com/matlabcentral/fileexchange/37901-legend-toggle), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2010a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Graphics > Formatting and Annotation > Labels and Annotations > Legend >
- MATLAB > Graphics > Graphics Objects > Graphics Object Properties >
在 Help Center 和 MATLAB Answers 中查找有关 Legend 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |