LegendFig:

Path: Common/GUIs

% Produce a new figure with just a legend of colors and names.

--------------------------------------------------------------------------
   Form:
   h = LegendFig( names, colors, title )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   names         {1,n}    Cell array of names to go in the legend
   colors        {1,n}    Cell array of 1-character colors 
           -or-  (n,3)    n rows of 3-element color vectors 

   figTitle      (1,:)    Title for new legend figure. Optional.

   -------
   Outputs
   -------
   h             (1,1)    Figure handle.

   See also:  ColorSpread.m

--------------------------------------------------------------------------

Back to the Common Module page