title: Avoid overlapping of contour line labels
body: <p>I have a code like this</p>
  
  <pre><code>[Cp hp] = contourf(log2(S_pr),log2(C_pr),ClassRateMatr_pr);
  
  clabel(Cp,hp,'LabelSpacing',150,'BackgroundColor',[1 1 1],'fontsize',16);
  </code></pre>
  
  <p>Which gives me this
  <img src="https://i.stack.imgur.com/afh2E.png" alt="enter image description here"></p>
  
  <p>As you can see the labels overlap such a way that it's impossible to read,</p>
  
  <p>How can I randomly place them or use other trick?</p>
  
  <p>Thanks,</p>