Quick Dark (or Custom) Plot Background

版本 1.0.0.0 (4.2 KB) 作者: Elsa Birch
Updates plot background color to black (or custom) and labels, axes, etc to white (or custom).
1.2K 次下载
更新时间 2011/1/29

查看许可证

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.

引用格式

Elsa Birch (2024). Quick Dark (or Custom) Plot Background (https://www.mathworks.com/matlabcentral/fileexchange/30222-quick-dark-or-custom-plot-background), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Colormaps 的更多信息
致谢

启发作品: darkBackground

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0