View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 54.7 KB File ID: #47200 Version: 1.0
image thumbnail



Chad Greene (view profile)


10 Jul 2014 (Updated )

Lighten or darken lines after plotting

| Watch this File

File Information

I wrote this function for myself because I create a lot of PowerPoints. Sometimes I plot some data, show old insufficient models, then I want to show how much better my new model is. I use grayout(h) as a simple command to wash out the old models, allowing viewers to focus on my new model while still being able to see the washed-out old models for reference.
grayout(h) lightens objects given by the handle(s) h.

grayout(h,beta) lightens or darkens objects by a factor of beta. If beta = 1, the object becomes white. If beta = -1, the object becomes black. Default beta is 0.5.


This file inspired Legappend.

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us