title: Plotting matplotlib tables with a multi-index
body: <p>Is it possible to plot a table with a multi-index using matplotlib the same way pandas displays out the table? The most I found on web was this <a href="https://github.com/pydata/pandas/issues/2088" rel="noreferrer">open git issue from 2012</a>.</p>
  
  <p>Given the following example data frame:</p>
  
  <pre><code>arrays = [['bar', 'bar', 'baz', 'baz', 'foo', 'foo', 'qux', 'qux'],
            ['one', 'two', 'one', 'two', 'one', 'two', 'one', 'two']]
  
  tuples = list(zip(*arrays))
  index = pd.MultiIndex.from_tuples(tuples, names=['first', 'second'])
  df = pd.DataFrame(np.random.randn(8, 4), index=arrays)
  </code></pre>
  
  <p>Which prints as follows:
  <a href="https://i.stack.imgur.com/3DKY0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3DKY0.png" alt="enter image description here"></a></p>
  
  <p>However when I try to create a table out of this using the following example:</p>
  
  <pre><code>fig=plt.figure(figsize=(9.5, 11))
  plt.gca().axis('off')
  matplotlib_tab = pd.tools.plotting.table(plt.gca(),
                                           df, 
                                          loc='upper center', 
                                          colWidths=[0.25]*len(df.columns))    
  
  table_props=matplotlib_tab.properties()
  table_cells=table_props['child_artists']
  for cell in table_cells:
      cell.set_height(0.024)
      cell.set_fontsize(12)
  
  fig.text(4.25/8.5, 10.5/11., 'plot', ha='center', fontsize=12)
  plt.plot()
  </code></pre>
  
  <p>I get the following ploted as a table(Note the left index isn't the same):</p>
  
  <p><a href="https://i.imgur.com/hC0q4F2.png" rel="noreferrer"><img src="https://i.imgur.com/hC0q4F2.png" alt="enter image description here"></a></p>