image thumbnail

lscatter : scatter plot with labels instead of markers

version (3.63 KB) by Yvan Lengwiler
Similar to ML's scatter command, but allows you to use separate labels for each point.


Updated 07 Oct 2010

View License

Like Matlab's scatter command, lscatter produces a scatter plot. Unlike scatter, it allows you to also use a vector of labels that are used instead of the usual uniform markers.


generates a scatter plot where label{i} is placed at the coordinate (x(i),y(i)), for all i.

The program accommodates a large number of options which make it easy to taylor the output to your needs. The included example script should help you get started.

Please comment if you like it or find it useful.

Cite As

Yvan Lengwiler (2021). lscatter : scatter plot with labels instead of markers (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: scattertext

Community Treasure Hunt

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

Start Hunting!