<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/247504</link>
    <title>MATLAB Central Newsreader - Varying point-to-point line color in plot</title>
    <description>Feed for thread: Varying point-to-point line color in plot</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>Wed, 25 Mar 2009 18:09:02 -0400</pubDate>
      <title>Varying point-to-point line color in plot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/247504#637680</link>
      <author>Eric Brown</author>
      <description>I would like to add timing information to a plot with X and Y data by varying the color of the line from 1:length(X). I attempted to do this with meshgrid and mesh, but the results were not informative.&lt;br&gt;
&lt;br&gt;
Is there an easy way to vary the point by point color of a line?&lt;br&gt;
&lt;br&gt;
I can see how to do this using 'hold' and plotting individual segments within a loop, but it seems like there should be a better way.</description>
    </item>
    <item>
      <pubDate>Thu, 26 Mar 2009 18:29:49 -0400</pubDate>
      <title>Re: Varying point-to-point line color in plot</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/247504#637987</link>
      <author>russell.fung@gmail.com</author>
      <description>On Mar 25, 1:09=A0pm, &quot;Eric Brown&quot; &amp;lt;eric.t.br...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; I would like to add timing information to a plot with X and Y data by var=&lt;br&gt;
ying the color of the line from 1:length(X). I attempted to do this with me=&lt;br&gt;
shgrid and mesh, but the results were not informative.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Is there an easy way to vary the point by point color of a line?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I can see how to do this using 'hold' and plotting individual segments wi=&lt;br&gt;
thin a loop, but it seems like there should be a better way.&lt;br&gt;
&lt;br&gt;
Try scatter.&lt;br&gt;
&lt;br&gt;
Russell</description>
    </item>
  </channel>
</rss>

