title: Plotting of 2D histogram with rootpy and matplotlib
body: <p>I am trying to plot a ROOT 2D histogram with rootpy and matplotlib.</p>
  
  <p>The code I use for this is:</p>
  
  <pre><code>from rootpy.io import File
  from rootpy.plotting import Hist
  import rootpy.plotting.root2matplotlib as rplt
  import matplotlib.pyplot as plt
  inputFile = File('mydata.root', 'read')
  h_response = inputFile.myfolder.response
  
  plt.figure(figsize=(16, 10), dpi=100)
  rplt.hist(h_response, label='response matrix')
  h_response.Draw()
  plt.xlabel('reconstructed $E_{\mathrm{T}}^{miss}$')
  plt.ylabel('Generated $E_{\mathrm{T}}^{miss}$')
  plt.title('Response Matrix')
  plt.savefig('ResponseMatrix.png')
  </code></pre>
  
  <p>However, this leaves me with the error msg:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/storage/Dropbox/Workspace/Analysis/DailyPythonScripts/src/unfolding.py", line 66, in &lt;module&gt;
      rplt.hist(h_response, label='response matrix')
    File "/usr/local/lib/python2.7/dist-packages/rootpy-0.7.0_a0-py2.7-linux-x86_64.egg/rootpy/plotting/root2matplotlib.py", line 140, in hist
      snap_zero=snap_zero)
    File "/usr/local/lib/python2.7/dist-packages/rootpy-0.7.0_a0-py2.7-linux-x86_64.egg/rootpy/plotting/root2matplotlib.py", line 82, in _set_bounds
      ywidth = ymax - ymin
  TypeError: unsupported operand type(s) for -: 'list' and 'list'
  </code></pre>
  
  <p>Obviously I am using the wrong rootpy2matplotlib module, so I had a look:
  The module provides: hist, bar and errorbar functions - no specific for >= 2D.</p>
  
  <p>Am I missing something? Is there an easy workaround? </p>
  
  <p>PS: I would like to tag this question with a 'rootpy' tag, but it is not possible. So I apologise, since this question is quite specific.</p>