The plot_Lab function is a simple tool to create nice-looking Matlab figures of CIE-L*a*b* color coordinates of a set of data samples.
-> plots can be created in true-color (each datapoint is plotted with the marker face color corresponding to that of the data sample)
-> plots can be created in pseudo-color (each sample is plotted in one color that is specified with the function call. Another call of the function allows plotting another set of data samples in the same figure)
-> 2D plots illustrate the data points in three subplots (a*b*;L*a*;L*b*)
-> 3D plots illustrate the data points in the 3D Lab space.
-> projected 3D plots illustrate the data points in a 3D space, but samples projected in the a*b*, L*a*, L*b* plane.
Figures can be exported to scalable vector graphics (svg) using 'plot2svg.m' by Juerg Schwizer (http://www.mathworks.es/matlabcentral/fileexchange/7401-scalable-vector-graphics-svg-export-of-figures). To use this feature, plot2svg.m must be available.
Simply run 'plot_Lab(0,0,0,0,0,0)' for a demo of all plot types with example data.
Timo Eckhard (2022). plot Lab color coordinates (https://www.mathworks.com/matlabcentral/fileexchange/44965-plot-lab-color-coordinates), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Scalable Vector Graphics (SVG) Export of Figures
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!