title: MatLab Rose color by bin size
body: <p>my Problem is the following.
  I want to do a rose plot with Matlab. (<a href="http://de.mathworks.com/help/matlab/ref/rose.html" rel="nofollow">http://de.mathworks.com/help/matlab/ref/rose.html</a>)
  I have the following code:</p>
  
  <pre><code>f2=figure('visible','off');
  h=rose(degtorad(angles(:,i)),40);
  title(['Marker '], 'FontSize',20)
  x=get(h,'Xdata');
  y=get(h,'Ydata');
  g=patch(x,y,[0.3 0.3 0.3]);
  saveas(f2,'\roses\marker.jpg')
  </code></pre>
  
  <p>And that is working fine. 
  But I now want to change the color of its bins by the size of the bins.
  So that the longest bin is black and the shortest is more or less white.
  And all the others are more or less dark grey, depending by the size of it.</p>
  
  <p>I hope my question is clear. </p>
  
  <p>Is that possible?
  Thanks a lot.
  Bant</p>
  
  <p>EDIT:
  I traked down the problem I think!
  The link beow i a link to a txt-file in my dropbox folder:</p>
  
  <p><a href="https://www.dropbox.com/s/u17n4rv0oma5lbk/Angles.txt?dl=0" rel="nofollow">https://www.dropbox.com/s/u17n4rv0oma5lbk/Angles.txt?dl=0</a></p>
  
  <p>In this txt-File a bunch of angles is saved.
  If I use these angles [they are in degree so I did <code>*2*pi/360</code>] instead of <code>rand([200 1])*2*pi;</code> it kind of patches the bins wrong. 
  the error must be in my angles but I don't know where!
  Thanks for your answer!</p>