title: Matplotlib: personalize imshow axis
body: <p>I have the results of a <code>(H,ranges) = numpy.histogram2d()</code> computation and I'm trying to plot it.</p>
  
  <p>Given <code>H</code> I can easily put it into <code>plt.imshow(H)</code> to get the corresponding image. (see <a href="http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.imshow" rel="noreferrer">http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.imshow</a> )</p>
  
  <p>My problem is that the axis of the produced image are the "cell counting" of <code>H</code> and are completely unrelated to the values of <code>ranges.</code></p>
  
  <p>I know I can use the keyword <code>extent</code> (as pointed in: <a href="https://stackoverflow.com/questions/18696122/change-values-on-matplotlib-imshow-graph-axis">Change values on matplotlib imshow() graph axis</a> ). But this solution does not work for me: my values on <code>range</code> are not growing linearly (actually they are going exponentially)</p>
  
  <p><strong>My question is:</strong> How can I put the value of <code>range</code> in <code>plt.imshow()</code>? Or at least, or can I manually set the label values of the <code>plt.imshow</code> resulting object?</p>
  
  <p>Editing the <code>extent</code> is not a good solution.</p>