legalpha

legend with support for patch transparency.

You are now following this Submission

If you've plotted semitransparent patch objects and tried to include them in a legend, you may have noticed that legend does not include transparency. This function solves the problem simply. Use legalpha just as you'd use legend, and if legalpha finds patch objects with transparency associated with them, the patches will be displayed properly in the legend.

Cite As

Chad Greene (2026). legalpha (https://au.mathworks.com/matlabcentral/fileexchange/47550-legalpha), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: legappend

Inspired: histf

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0