As graphics increase in complexity, it is common to use additional symbols, line styles, color, and such others to code for different layers of information.
Figure legends help sort out this madness. Sometimes there are too many variables to code and the program needs to use clever combinations to code for the additional layers of information. This recipe demonstrates how the
command from MATLAB helps to build legends of your choice. Furthermore, it shows how to make your own legends to accommodate a special need.
This recipe plots a set of ten normal distributions with different parameters.
Perform the following steps: