File Exchange

image thumbnail


version (3.33 KB) by Michelle Hirsch
Identify a plotted line by clicking on it.


Updated 01 Sep 2016

View License

Did you ever plot a whole bunch of lines and then have trouble telling them apart? You find that a static legend isn't convenient, or just doesn't suffice? Well, with linelabel, simply click on a line and it's identity will be revealed!

Comments and Ratings (8)


exactly what I have been looking for

Adrian Cherry

Very useful.

I tweaked it slightly so that it would work with bar charts as well (R2008a)

lines 131 and 182 now read
if strcmp(htype,'line') || strcmp(htype,'hggroup')



Maurizio Santoro

Very good!

Andres Mahecha-Botero


Antonin Garriga

very good idea

Ju wang

very nice!

Ju wang

very nice!


Updated license

Made available for download as an easy-to-install Toolbox file.

Removed mistaken attribution.

Update copyright.

Add keyword telemetry

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