title: plotyy change colors
body: <p>I am using plotyy function in MATLAB. It is effectively 2 plots, each with 5  'lines'. I want the 5 lines to match in colors, but am not managing. I have tried various methods from set handle to colororder - see below.</p>
  
  <p>The two variables, pk3... are vectors of 5 columns each.</p>
  
  <pre><code>[ax,h1,h2]= plotyy(2007:2050,pk3uco25,2007:2050,pk3ux45)
  </code></pre>
  
  <p>I have used the lines below to control the other properties, ...</p>
  
  <pre><code>set(h1,'linestyle', 'd','marker','*', 'markersize', 5) %variable 1
  set(h2,'linestyle', '-', 'linewidth', 1.5)             %variable 2
  </code></pre>
  
  <p>What I would like is that the first 5 lines, match the color of the second 5 lines. I have tried  various things such as:</p>
  
  <ul>
  <li><p>setting a colororder that repeats itself such that <code>mycolororder{1:5,:} == mycolororder{6:10,:}</code></p>
  
  <p><code>set(gca,'colororder',mycolororder); %</code></p></li>
  <li><p>using a matrix of values</p></li>
  </ul>
  
  <p><code>cols(1:5,1)={'color'};</code></p>
  
  <pre><code>cols(:,2)=get(h1,'color');
  set(h2,cols{1:5,1},cols{1:5,2});
  </code></pre>
  
  <p>... and a few other things but no luck!</p>