title: How to plot pcolor colorbar in a different subplot - matplotlib
body: <p>I am trying to split my plots in different subplots.. What I want to achieve is to put a colorbar for a subplot in a different subplot.
  Right now I am using:</p>
  <pre><code># first graph
  axes = plt.subplot2grid((4, 2), (0, 0), rowspan=3)
  pc = plt.pcolor(df1, cmap='jet')
  
  # second graph
  axes = plt.subplot2grid((4, 2), (3, 0))
  plt.pcolor(df2, cmap='Greys')
  
  # colorbar
  plt.subplot2grid((4, 2), (0, 1), rowspan=3)
  plt.colorbar(pc) 
  </code></pre>
  <p>But the result is the following (notice the unwanted empty graph left to the colorbar):
  <img src="https://i.stack.imgur.com/e8VUs.png" alt="Wrong graph" /></p>
  <p>What can I do to print only the colorbar without the left plot?</p>
  <p>Thanks</p>