Color code a scatter plot

Color code a scatter plot in one, two, or three dimensions according to scalar function of the data.
754 Downloads
Updated 1 Sep 2011

View License

The function buildcmap.m takes a vector as input, where entry i represent the value of a function (f) at the ith data point. Using output from buildcmap.m, showset.m plots one, two, or three dimensional data as a colored point cloud, where the color encodes the value of f. For example, the files can be used to visualize four dimensional data in three-space: position encodes three variables while the color encodes the fourth.

Cite As

Kye Taylor (2024). Color code a scatter plot (https://www.mathworks.com/matlabcentral/fileexchange/32765-color-code-a-scatter-plot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Scatter Plots in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0