function map = lines(n)
%LINES  Color map with the line colors.
%   LINES(M) returns an M-by-3 matrix containing a "ColorOrder"
%   colormap. LINES, by itself, is the same length as the current
%   colormap.
%
%   For example, to set the colormap of the current figure:
%
%       colormap(lines)
%
%   See also HSV, GRAY, PINK, COOL, BONE, COPPER, FLAG, 
%   COLORMAP, RGBPLOT.

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.5 $  $Date: 1997/11/21 23:33:54 $

if nargin<1, n = size(get(gcf,'Colormap'),1); end

c = get(0,'defaultaxescolororder');

map = c(rem(0:n-1,size(c,1))+1,:);


