title: Change color of the second Y axis in the Matlab ( using new yyaxis tool)
body: <p>I use matlab R2016a. I would like to make 2 Y axis of specific colours. I can not do it somehow.</p>
  
  <p>(Manual says, that Y axis colour of the right side inherits colour of the first graph that appears under the definition of the right axis plots. The same should work with left axis plots.)</p>
  
  <p>Here is the problem on a figure:</p>
  
  <p>My left side is blue, while it should be green:</p>
  
  <p><img src="https://i.stack.imgur.com/GZIz9.png" alt="(my left side is blue, while it should be green)">:</p>
  
  <p>Here is the code:</p>
  
  <pre><code>yyaxis left
  hold all;
  plot(bdates,normcdf(-DD_proxy_list),'r')
  plot(bdates,normcdf(-DDstar_proxy_list),'b')
  yyaxis right
  plot(bdates,BBDP_slice,'g')
  </code></pre>