import matplotlib.pyplot as plt
import numpy as np

fig,axe=plt.subplots()
data_m=(40, 60, 120, 180, 20, 200)
index = np.arange(6)
width=0.4
axe.barh(index, data_m, width,align='center',alpha=0.8, label='men')
plt.show()
a568299fb282db228f7718dcd1820287eabd61f6
<mask token>

<mask token>
axe.barh(index, data_m, width, align='center', alpha=0.8, label='men')
plt.show()

<mask token>
fig, axe = plt.subplots()
data_m = 40, 60, 120, 180, 20, 200
index = np.arange(6)
width = 0.4
axe.barh(index, data_m, width, align='center', alpha=0.8, label='men')
plt.show()

import matplotlib.pyplot as plt
import numpy as np
fig, axe = plt.subplots()
data_m = 40, 60, 120, 180, 20, 200
index = np.arange(6)
width = 0.4
axe.barh(index, data_m, width, align='center', alpha=0.8, label='men')
plt.show()

import matplotlib.pyplot as plt
import numpy as np

fig,axe=plt.subplots()
data_m=(40, 60, 120, 180, 20, 200)
index = np.arange(6)
width=0.4
axe.barh(index, data_m, width,align='center',alpha=0.8, label='men')
plt.show()