title: How can I display a log scale colorbar with Matlab R2015a?
body: <p>I am trying to display a 3D plot with the function surf in Matlab and I need it to be in log scale for the z-axis. So here is what I am doing :</p>
  
  <pre><code>surf(X,Y,Z)
  set(gca,'zscale','log')
  </code></pre>
  
  <p>But I would like the colorbar to appear in log scale, with labels like 10^(-6), 10^(-5), 10^(-4),... </p>
  
  <p>Looking it up, I found out about the solution</p>
  
  <pre><code>h = colorbar
  set(h,'YScale','log')
  </code></pre>
  
  <p>but it's not working with the newest versions of Matlab because the <code>'YScale'</code> parameter doesn't exist anymore.</p>
  
  <p>Any idea?</p>
  
  <p>Thanks a lot.</p>