lscatter : scatter plot with labels instead of markers
by Yvan Lengwiler
30 Jun 2010
(Updated 07 Oct 2010)
Similar to ML's scatter command, but allows you to use separate labels for each point.
|
Watch this File
|
| File Information |
| Description |
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.
lscatter(x,y,l)
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. |
| MATLAB release |
MATLAB 7.10 (2010a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 01 Jul 2010 |
Options are now case insensitive and can be abbreviated, following John D'Errico's comment. |
| 01 Jul 2010 |
Now also catches ambiguous options, following a further comment by John D'Errico (Thank you, John!). |
| 07 Oct 2010 |
Bug fix thanks to Christ Ftaclas: before, the label vanished when any of the coordinates became zero. Furthermore, the undocumented 'LineSmoothing' option of the 'plot' command is now supported. |
|
Contact us at files@mathworks.com