Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: EZPlot coloring
Date: Fri, 4 Apr 2008 13:09:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 18
Message-ID: <ft599d$72d$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1207314541 7245 172.30.248.37 (4 Apr 2008 13:09:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 4 Apr 2008 13:09:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:461070



I found a function on the file exchange to do this, however 
it should be built in!! Can it be added for the next 
release so people can do this easily? I was just sitting in 
a lecture where a guy was trying to color his plots and he 
ended up just making a time vector so he could use the 
standard plot() function because it is easily colored.  
Just a suggestion for ease of use!

%change properties of last curve in current figure
%Examples:
%     setcurve('color','red')
%     setcurve('color','green','linestyle','--')
%Type  help plot  to see available colors and line styles 
function setcurve(varargin)
h=get(gca,'children');
set(h(1),varargin{:})