Creating a Multi bar plot in matplotlib

Hi, can anyone walk me through the process of creating a multi bar plot in matplotlib, like i want to plot 2 columns let’s say “Men” and “Women” adjacent to each other.I tried looking through the matplotlib documentation and stackoverflow but to no avail.
Thanks in advance!

Basically it may look like this:

  1. Prepare your data
  2. Select graph type that suits your data best
  3. Build the graph

You may want to play with this very simple code (from here) by changing its’ parameters in and see what happens to get better understanding of how it works.

import numpy as np
import matplotlib.pyplot as plt

data = [[5., 25., 50., 20.], [4., 23., 51., 17.]]

tick = np.arange(4) + 0.00, data[0], color = 'b', width = 0.25) + 0.25, data[1], color = 'r', width = 0.25)

If after that you’ll still feel stacked, let us know, we’ll be happy to help further :slight_smile:

It worked perfectly.

Glad it helped! If you don’t mind, could you, please, mark the answer as solution so that other could find it later and your question would be marked as solved. Thanks!