<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254577</link>
    <title>MATLAB Central Newsreader - R2009a: Setting GridLines Color Different to Axis Color...</title>
    <description>Feed for thread: R2009a: Setting GridLines Color Different to Axis Color...</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, 24 Jun 2009 17:25:03 -0400</pubDate>
      <title>R2009a: Setting GridLines Color Different to Axis Color...</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254577#660186</link>
      <author>Andrey Kazak</author>
      <description>Greetings!&lt;br&gt;
&lt;br&gt;
I've read the bulletin:&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/support/solutions/data/1-1PAYMC.html?solution=1-1PAYMC)&quot;&gt;http://www.mathworks.com/support/solutions/data/1-1PAYMC.html?solution=1-1PAYMC)&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
and it states: &quot;... This enhancement has been incorporated in Release 2008a (R2008a).&quot;&lt;br&gt;
What is it?&lt;br&gt;
&lt;br&gt;
Could you help me to figure out the way to set GridLines Color different to Axis Color please?</description>
    </item>
    <item>
      <pubDate>Wed, 24 Jun 2009 22:27:58 -0400</pubDate>
      <title>Re: R2009a: Setting GridLines Color Different to Axis Color...</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254577#660289</link>
      <author>Nathan</author>
      <description>On Jun 24, 10:25&#160;am, &quot;Andrey Kazak&quot; &amp;lt;A...@nospam.ru&amp;gt; wrote:&lt;br&gt;
&amp;gt; Greetings!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I've read the bulletin:&lt;a href=&quot;http://www.mathworks.com/support/solutions/data/1-1PAYMC.html?solutio...)&quot;&gt;http://www.mathworks.com/support/solutions/data/1-1PAYMC.html?solutio...)&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; and it states: &quot;... This enhancement has been incorporated in Release 2008a (R2008a).&quot;&lt;br&gt;
&amp;gt; What is it?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Could you help me to figure out the way to set GridLines Color different to Axis Color please?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Did you not read the whole bulletin?...&lt;br&gt;
Try this.&lt;br&gt;
c_axes = copyobj(gca,gcf);&lt;br&gt;
set(c_axes, 'color', 'r', 'xcolor', 'y', 'xgrid', 'off', 'ycolor','b',&lt;br&gt;
'ygrid','off');&lt;br&gt;
&lt;br&gt;
-Nathan</description>
    </item>
    <item>
      <pubDate>Wed, 24 Jun 2009 22:33:03 -0400</pubDate>
      <title>Re: R2009a: Setting GridLines Color Different to Axis Color...</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254577#660290</link>
      <author>Nathan</author>
      <description>On Jun 24, 3:27&#160;pm, Nathan &amp;lt;ngrec...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Jun 24, 10:25&#160;am, &quot;Andrey Kazak&quot; &amp;lt;A...@nospam.ru&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Greetings!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I've read the bulletin:&lt;a href=&quot;http://www.mathworks.com/support/solutions/data/1-1PAYMC.html?solutio...)&quot;&gt;http://www.mathworks.com/support/solutions/data/1-1PAYMC.html?solutio...)&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; and it states: &quot;... This enhancement has been incorporated in Release 2008a (R2008a).&quot;&lt;br&gt;
&amp;gt; &amp;gt; What is it?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Could you help me to figure out the way to set GridLines Color different to Axis Color please?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Did you not read the whole bulletin?...&lt;br&gt;
&amp;gt; Try this.&lt;br&gt;
&amp;gt; c_axes = copyobj(gca,gcf);&lt;br&gt;
&amp;gt; set(c_axes, 'color', 'r', 'xcolor', 'y', 'xgrid', 'off', 'ycolor','b',&lt;br&gt;
&amp;gt; 'ygrid','off');&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -Nathan&lt;br&gt;
&lt;br&gt;
Oops, left off a part.&lt;br&gt;
&lt;br&gt;
ezplot('x')&lt;br&gt;
grid on&lt;br&gt;
set(gca,'Xcolor','r')&lt;br&gt;
c_axes = copyobj(gca,gcf);&lt;br&gt;
set(c_axes, 'color', 'none', 'xcolor', 'y', 'xgrid', 'off',&lt;br&gt;
'ycolor','b', 'ygrid','off');&lt;br&gt;
&lt;br&gt;
Play with that and get the colors you want.&lt;br&gt;
-Nathan</description>
    </item>
    <item>
      <pubDate>Thu, 25 Jun 2009 16:45:03 -0400</pubDate>
      <title>Re: R2009a: Setting GridLines Color Different to Axis Color...</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254577#660472</link>
      <author>Andrey Kazak</author>
      <description>Nathan &amp;lt;ngreco32@gmail.com&amp;gt; wrote in message &amp;lt;d90c7cfc-d37d-4e34-b215-dee128a2c437@y4g2000prf.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Jun 24, 3:27?pm, Nathan &amp;lt;ngrec...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; On Jun 24, 10:25?am, &quot;Andrey Kazak&quot; &amp;lt;A...@nospam.ru&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Greetings!&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I've read the bulletin:&lt;a href=&quot;http://www.mathworks.com/support/solutions/data/1-1PAYMC.html?solutio...)&quot;&gt;http://www.mathworks.com/support/solutions/data/1-1PAYMC.html?solutio...)&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; and it states: &quot;... This enhancement has been incorporated in Release 2008a (R2008a).&quot;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; What is it?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Could you help me to figure out the way to set GridLines Color different to Axis Color please?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Did you not read the whole bulletin?...&lt;br&gt;
&amp;gt; &amp;gt; Try this.&lt;br&gt;
&amp;gt; &amp;gt; c_axes = copyobj(gca,gcf);&lt;br&gt;
&amp;gt; &amp;gt; set(c_axes, 'color', 'r', 'xcolor', 'y', 'xgrid', 'off', 'ycolor','b',&lt;br&gt;
&amp;gt; &amp;gt; 'ygrid','off');&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; -Nathan&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Oops, left off a part.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ezplot('x')&lt;br&gt;
&amp;gt; grid on&lt;br&gt;
&amp;gt; set(gca,'Xcolor','r')&lt;br&gt;
&amp;gt; c_axes = copyobj(gca,gcf);&lt;br&gt;
&amp;gt; set(c_axes, 'color', 'none', 'xcolor', 'y', 'xgrid', 'off',&lt;br&gt;
&amp;gt; 'ycolor','b', 'ygrid','off');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Play with that and get the colors you want.&lt;br&gt;
&amp;gt; -Nathan&lt;br&gt;
&lt;br&gt;
Thank you, Nathan!&lt;br&gt;
&lt;br&gt;
Of course I've seen this information, but what is the &quot;enhancement&quot; method mentioned in the bulletin?</description>
    </item>
    <item>
      <pubDate>Fri, 03 Jul 2009 05:52:01 -0400</pubDate>
      <title>Re: R2009a: Setting GridLines Color Different to Axis Color...</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254577#662429</link>
      <author>Andrey Kazak</author>
      <description>Any new on the topic?</description>
    </item>
    <item>
      <pubDate>Sat, 04 Jul 2009 01:34:02 -0400</pubDate>
      <title>Re: R2009a: Setting GridLines Color Different to Axis Color...</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254577#662564</link>
      <author>Paul Mennen</author>
      <description>Nathan wrote &lt;br&gt;
&amp;gt; Try this.&lt;br&gt;
&amp;gt; c_axes = copyobj(gca,gcf);&lt;br&gt;
&amp;gt; set(c_axes, ...&lt;br&gt;
&lt;br&gt;
Looks pretty cryptic to me. One shouldn't have to resort to such cryptic commands for such commonplace tasks. Assuming you are creating 2D plots, an alternative to consider is the &quot;plt&quot; function from the file exchange. (My creation, I'm proud to admit.) For one thing, the default grid color is much more subtle and reasonable so you may never be possessed to change it. But if you do want to change it, simply use the 'GRIDc' argument as spelled out in the help file. And of course I wouldn't have done anything as silly as linking the grid color in any way to the x or y axis ticks or labels. Also plt works the same in any version of Matlab released within the last 8 years.&lt;br&gt;
&lt;br&gt;
If you try plt, I think you will find that one of its strongest advantages over the native &quot;plot&quot; is the well organized help file which clearly explains all the plotting features (with examples!). With plt you won't have to become a handle graphics expert to deal with the poorly documented and cryptic auxiliary functions such as plotyy, plotyyy, etc.&lt;br&gt;
&lt;br&gt;
~Paul</description>
    </item>
    <item>
      <pubDate>Mon, 06 Jul 2009 00:35:17 -0400</pubDate>
      <title>Re: R2009a: Setting GridLines Color Different to Axis Color...</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254577#662771</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Andrey Kazak&quot; &amp;lt;AK@nospam.ru&amp;gt; wrote in message &lt;br&gt;
news:h209if$f7g$1@fred.mathworks.com...&lt;br&gt;
&lt;br&gt;
*snip*&lt;br&gt;
&lt;br&gt;
&amp;gt; Of course I've seen this information, but what is the &quot;enhancement&quot; method &lt;br&gt;
&amp;gt; mentioned in the bulletin?&lt;br&gt;
&lt;br&gt;
I'm pretty sure that means the information given in that document was &lt;br&gt;
incorporated into the documentation in release R2008a.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Mon, 06 Jul 2009 06:27:00 -0400</pubDate>
      <title>Re: R2009a: Setting GridLines Color Different to Axis Color...</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/254577#662800</link>
      <author>Andrey Kazak</author>
      <description>&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &amp;lt;h2rgqj$3pk$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Andrey Kazak&quot; &amp;lt;AK@nospam.ru&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:h209if$f7g$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; *snip*&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Of course I've seen this information, but what is the &quot;enhancement&quot; method &lt;br&gt;
&amp;gt; &amp;gt; mentioned in the bulletin?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm pretty sure that means the information given in that document was &lt;br&gt;
&amp;gt; incorporated into the documentation in release R2008a.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
The strange thing I see...&lt;br&gt;
I cannot find the mentioned code in MATLAB help. However could you please look at the following:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/support/solutions/data/1-1PAYMC.html?solutio...)&quot;&gt;http://www.mathworks.com/support/solutions/data/1-1PAYMC.html?solutio...)&lt;/a&gt;&lt;br&gt;
(updated on 06 Apr 2009)&lt;br&gt;
and&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/support/solutions/en/data/1-1PAYMC/?solution=1-1PAYMC&quot;&gt;http://www.mathworks.com/support/solutions/en/data/1-1PAYMC/?solution=1-1PAYMC&lt;/a&gt;&lt;br&gt;
(updated on Wednesday, July 1, 2009)&lt;br&gt;
&lt;br&gt;
The older one states that &quot;This enhancement has been incorporated in Release 2008a (R2008a)&quot; while the newer one lacks for this statement...&lt;br&gt;
How should one understand this?</description>
    </item>
  </channel>
</rss>

