title: How to use matplotlib to plot complex bar graphs–multiple subplots with multiple rows of bars?
body: <p>I have a sample dataframe like the following:</p>
  <pre><code>import pandas as pd
  
  df = pd.DataFrame(np.random.randint(
      0, 10, size=(1000, 11)), columns=list('ABCDEFGHIJK'))
  </code></pre>
  <p>The desired but unpolished output looks like this:</p>
  <p><strong>The data of each column in the dataframe is plotted as a subplot with five rows of bars.</strong></p>
  <p><a href="https://i.stack.imgur.com/mLcTv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mLcTv.png" alt="enter image description here" /></a></p>
  <p>I prefer to use matplotlib because I can relatively easily make the graphs looking good. But its performance seems pretty slow.</p>