image thumbnail

plot Lab color coordinates

version (3.17 KB) by Timo Eckhard
This function can be used to create various plots of Lab color coordinates.


Updated 07 Jan 2014

View License

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 ( 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.

Cite As

Timo Eckhard (2022). plot Lab color coordinates (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows 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!