<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243807</link>
    <title>MATLAB Central Newsreader - colored markers in plot;  cycling though colors</title>
    <description>Feed for thread: colored markers in plot;  cycling though colors</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 05 Feb 2009 02:55:03 -0500</pubDate>
      <title>colored markers in plot;  cycling though colors</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243807#626252</link>
      <author>Godzilla </author>
      <description>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:&lt;br&gt;
plot( ...,'markerfacecolor',[a b c])&lt;br&gt;
&lt;br&gt;
and my question is how do I vary a,b,c so that I get a (rainbow) spectrum of colors.  &lt;br&gt;
&lt;br&gt;
I tried:&lt;br&gt;
&lt;br&gt;
for i=1:n&lt;br&gt;
plot( [data from experiment], markerfacecolor',[1 1 1]/i)&lt;br&gt;
&lt;br&gt;
and this resulted in shades of gray, which is difficult to view if there are more than 3-4 experiments. </description>
    </item>
    <item>
      <pubDate>Thu, 05 Feb 2009 04:40:18 -0500</pubDate>
      <title>Re: colored markers in plot;  cycling though colors</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243807#626259</link>
      <author>Matt Fig</author>
      <description>Why not use the colormap?&lt;br&gt;
&lt;br&gt;
T = colormap;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
`krrf_%_m&amp;gt;_%m}mlregitmw`}mj8c_f}}}cm_lcj}WgcKCa}nfk}n_ss,_a</description>
    </item>
  </channel>
</rss>

