View License

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

» Watch video

Highlights from
Quick Dark (or Custom) Plot Background

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

Quick Dark (or Custom) Plot Background



Updates plot background color to black (or custom) and labels, axes, etc to white (or custom).

| Watch this File

File Information

Quickly updates the color of a figure so that it can be easily displayed on a dark background, by changing background color and converting axes, labels, etc to a light shade. However, if backColor and foreColor are passed it can also be used to convert to other custom color schemes. By default (if none are specified in arguments), background is black and foreground is white.

Input Arguments:
- valid handle for the figure to be converted
- RGB vector for desired background color {black if none passed}
- RGB vector for desired foreground color {white if none passed}

This may not be an entriely comprehensive tool, in fact it most certainly is not. It is just my current quick and dirty solution to the fact that the energy barrier to my using pretty dark background (or any custom color) presentations is usually my plots. The default call (only input hFigure) gives somewhat similar results to the command 'colordef black' and this function may in some respects be less comprehensive, but it works better for my own personal needs.

MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
27 Feb 2013 Patrick

Super useful! Thanks!

Comment only
01 Feb 2011 Elsa Birch

I'd love to hear about any bugs you find or ideas you have for improvement or added functionality!

If you have a bug/suggestion please let me know what type of plot you're working with.

Comment only

Contact us