title: A logarithmic colorbar in matplotlib scatter plot
body: <p>I would like to make the colors of the points on the scatter plot correspond to the value of the void fraction, but on a logarithmic scale to amplify differences. I did this, but now when I do plt.colorbar(), it displays the log of the void fraction, when I really want the actual void fraction. How can I make a log scale on the colorbar with the appropriate labels of the void fraction, which belongs to [0.00001,1]?</p>
  
  <p>Here is an image of the plot I have now, but the void fraction colorbar is not appropriately labeled to correspond to the true void fraction, instead of the log of it.</p>
  
  <p><img src="https://i.stack.imgur.com/k0QMe.png" alt="current plot"></p>
  
  <pre><code>fig = plt.figure()
  plt.scatter(x,y,edgecolors='none',s=marker_size,c=np.log(void_fraction))
  plt.colorbar()
  plt.title('Colorbar: void fraction')
  </code></pre>
  
  <p>Thanks for your help.</p>