title: How to plot a 2d matrix in python with colorbar? (like imagesc in Matlab)
body: <p>In Matlab I can visualize a matrix <code>data</code> quite easily with</p>
  
  <pre><code>data = rand(10,10); % Createas a 10 x 10 random matrix
  imagesc(data);
  colorbar;
  </code></pre>
  
  <p>Now I want to do the same thing in python. I already know how to plot a 2d matrix (numpy array):</p>
  
  <pre><code>from matplotlib.pyplot import imshow
  import numpy as np
  data = np.random.random((10,10))
  imshow(np.asarray(img))
  </code></pre>
  
  <p>but I don't know how to add a colorbar to it. Any ideas?</p>