View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Color code a scatter plot

3.0 | 1 rating Rate this file 6 Downloads (last 30 days) File Size: 3.3 KB File ID: #32765 Version: 1.0
image thumbnail

Color code a scatter plot


Kye Taylor (view profile)


Color code a scatter plot in one, two, or three dimensions according to scalar function of the data.

| Watch this File

File Information

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.

MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
05 May 2014 Tor Eivind

Hi! Neat code. It would be very beneficial if you included code for the legend(some way of linking the color to the values)

Contact us