Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: colored markers in plot;  cycling though colors
Date: Thu, 5 Feb 2009 02:55:03 +0000 (UTC)
Organization: University of Memphis
Lines: 11
Message-ID: <gmdke7$iu9$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1233802503 19401 172.30.248.38 (5 Feb 2009 02:55:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 5 Feb 2009 02:55:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 233092
Xref: news.mathworks.com comp.soft-sys.matlab:516218


I'm adding points from different experiments to a plot and I would like to color them differently for each experiment.  The problem is that the number of experiments varies.  Therefore I need to make a color table that has n different colors, where n is the number of experiments.  I realize that I can assign a color in a plot by using, e,.g:
plot( ...,'markerfacecolor',[a b c])

and my question is how do I vary a,b,c so that I get a (rainbow) spectrum of colors.  

I tried:

for i=1:n
plot( [data from experiment], markerfacecolor',[1 1 1]/i)

and this resulted in shades of gray, which is difficult to view if there are more than 3-4 experiments.