Graphics    

Adding Legends to Graphs

Legends identify each data set plotted in your graph. In a legend, MATLAB includes a small sample of the line or marker used to represent each data set in the graph, in the same color and style as it appears in the graph. MATLAB also includes a text label to identify each data set.

This section includes these topics:


  Using the title Function Using the Legend Option on the Insert Menu