<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153801</link>
    <title>MATLAB Central Newsreader - help with graph</title>
    <description>Feed for thread: help with graph</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 01 Aug 2007 22:24:57 -0400</pubDate>
      <title>Re: help with graph</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153801#385944</link>
      <author>Buffy Summers</author>
      <description>I managed todo it myself. If anyone is interested:&lt;br&gt;
&lt;br&gt;
h1=gca;&lt;br&gt;
set(h1,'XTickLabel',['Ct';'C1';'C2';'C3']);&lt;br&gt;
&lt;br&gt;
Thank you for the help. &lt;br&gt;
&lt;br&gt;
"Buffy Summers" &amp;lt;offdar@gmail.com&amp;gt; wrote in message &amp;lt;f8qtfs$hrn$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank you very very much!&lt;br&gt;
&amp;gt; Do you also have a solution for the name problem?&lt;br&gt;
&amp;gt; for ix to be string and not a number?&lt;br&gt;
&amp;gt; Thank you!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; "us " &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &amp;lt;f8qpi0$62b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Buffy Summers:&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;SNIP colorful popsicles&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; each value needs a bar in a different color with a differnt name...&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; one of the solutions&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; % the data&lt;br&gt;
&amp;gt; &amp;gt;      nb=4;&lt;br&gt;
&amp;gt; &amp;gt;      yb=rand(nb,1);&lt;br&gt;
&amp;gt; &amp;gt;      cm=jet(nb); % &amp;lt;- a colormap, use your own nxrgb...&lt;br&gt;
&amp;gt; &amp;gt; % the engine&lt;br&gt;
&amp;gt; &amp;gt;      ix=[3,2,4,1]; % &amp;lt;- index into &amp;lt;cm&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;      bh=bar(yb);&lt;br&gt;
&amp;gt; &amp;gt;      ch=get(bh,'children');&lt;br&gt;
&amp;gt; &amp;gt;      set(ch,...&lt;br&gt;
&amp;gt; &amp;gt;            'facevertexcdata',ix.');&lt;br&gt;
&amp;gt; &amp;gt;      colormap(cm);&lt;br&gt;
&amp;gt; &amp;gt;      colorbar; % &amp;lt;- compare with bar color indices!&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; us&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 01 Aug 2007 21:21:00 -0400</pubDate>
      <title>Re: help with graph</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153801#385937</link>
      <author>Buffy Summers</author>
      <description>&lt;br&gt;
Thank you very very much!&lt;br&gt;
Do you also have a solution for the name problem?&lt;br&gt;
for ix to be string and not a number?&lt;br&gt;
Thank you!&lt;br&gt;
&lt;br&gt;
"us " &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &amp;lt;f8qpi0$62b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Buffy Summers:&lt;br&gt;
&amp;gt; &amp;lt;SNIP colorful popsicles&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; each value needs a bar in a different color with a differnt name...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; one of the solutions&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; % the data&lt;br&gt;
&amp;gt;      nb=4;&lt;br&gt;
&amp;gt;      yb=rand(nb,1);&lt;br&gt;
&amp;gt;      cm=jet(nb); % &amp;lt;- a colormap, use your own nxrgb...&lt;br&gt;
&amp;gt; % the engine&lt;br&gt;
&amp;gt;      ix=[3,2,4,1]; % &amp;lt;- index into &amp;lt;cm&amp;gt;&lt;br&gt;
&amp;gt;      bh=bar(yb);&lt;br&gt;
&amp;gt;      ch=get(bh,'children');&lt;br&gt;
&amp;gt;      set(ch,...&lt;br&gt;
&amp;gt;            'facevertexcdata',ix.');&lt;br&gt;
&amp;gt;      colormap(cm);&lt;br&gt;
&amp;gt;      colorbar; % &amp;lt;- compare with bar color indices!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; us&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 01 Aug 2007 20:13:52 -0400</pubDate>
      <title>Re: help with graph</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153801#385929</link>
      <author>us</author>
      <description>Buffy Summers:&lt;br&gt;
&amp;lt;SNIP colorful popsicles&lt;br&gt;
&lt;br&gt;
&amp;gt; each value needs a bar in a different color with a differnt name...&lt;br&gt;
&lt;br&gt;
one of the solutions&lt;br&gt;
&lt;br&gt;
% the data&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;nb=4;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;yb=rand(nb,1);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cm=jet(nb); % &amp;lt;- a colormap, use your own nxrgb...&lt;br&gt;
% the engine&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ix=[3,2,4,1]; % &amp;lt;- index into &amp;lt;cm&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bh=bar(yb);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ch=get(bh,'children');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(ch,...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'facevertexcdata',ix.');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;colormap(cm);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;colorbar; % &amp;lt;- compare with bar color indices!&lt;br&gt;
&lt;br&gt;
us&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 01 Aug 2007 17:58:38 -0400</pubDate>
      <title>help with graph</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/153801#385915</link>
      <author>Buffy Summers</author>
      <description>I need to make a bar graph. I have 3 values. each value needs a bar in a different color with a differnt name. in the bar command, if I do X=[1 2 3] and than bar(X) I get 3 bars in the same color and i can't change to 3 different color. I also would like to add the group name under each value. Can someone help?&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
