title: Adding Colorbar and Contour Map to PyPlot surface imshow in Python
body: <p>I am using code written by a former employee. In this code, the person performs a plot on Python using Qt. I'm trying to add a colorbar and contour maps, but to no avail. Here's part of the code that's relevant.</p>
  <pre><code>#IMPORTS
  from matplotlib.figure import Figure
  from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
  
  #SETUP
  fig = Figure()
  axes = fig.add_subplot(111)
  canvas = FigureCanvas(fig)
  
  #DRAWING
  axes.clear()
  axes.imshow(data_and_extents, interpolation='bilinear')
  axes.autoscale(False)
  canvas.draw()
  
  #TODO: Add colorbar and contour maps with some values
  </code></pre>
  <p>I have tried <code>axes.colorbar()</code> to no avail. How do I add colorbars and contour maps to surface plots set up like this?</p>
  <p>Thanks SOCommunity!</p>