mycolor(colorcode, selectplate)
Color selector: generating a 3-number vector code for a color.
Detailed documentation and examples of usage please see: https://github.com/weitingwlin/matlabutility/blob/master/documents/mycolor.md
Syntax
code = mycolor(colorcode, selectplate)
colorcode: integer (>1), selecting from the color plate:
e.g. colorcode = 3 returns [ 0 0.2000 0.6000], the code for dark blue from the default plate 'color'
other usages :
colorcode = 0 (default): will display the color plate assigned in a new figure
colorcode = -1 ; return the colormap (3 * ?) matrix, specified in [selectplate]
colorcode is a string (passed to selectplate), return colormap (as colorcode = -1);
selectplate: a string, assign the plate you want to chose from
'color': default; the plate with discrete color; type mycolor(0) for detail
'redblue': a red to blue bipolor scale; type mycolor(0,'redblue') for detal
'gray': a gray scale; type mycolor(0,'redblue') for detail
Cite As
Wei-Ting Lin (2024). mycolor(colorcode, selectplate) (https://www.mathworks.com/matlabcentral/fileexchange/48138-mycolor-colorcode-selectplate), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Visualization of correlation matrix: mycorrplot_1, mycorrplot_2, myplot_bar: bar graphs with error bar, mysubplot: subplots with major title, myplot_loglog, myplot_RAC: Rank-Abundance Curve
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.