File Exchange

image thumbnail

Legend Toggle

version (3.37 KB) by Matt Kindig
Toggle visibility of graphics objects by clicking on legend. Allows for custom callback function.

1 Download

Updated 24 Aug 2012

View License

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 (2021). Legend Toggle (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!