import matplotlib.pyplot as plt
import matplotlib
matplotlib.rcParams['font.family'] = 'Malgun Gothic'
matplotlib.rcParams['font.size'] = 15
matplotlib.rcParams['axes.unicode_minus'] = False #한글폰트 사용시 마이너스 글자가 깨지는 현상 해결
labels = ['강백호', '서태웅', '정대만']
values = [190, 187, 184]
plt.barh(labels, values)
plt.xlim(175,195)
(175.0, 195.0)
bar = plt.bar(labels, values)
bar[0].set_hatch('/')
bar[1].set_hatch('x')
bar[2].set_hatch('..')
bar = plt.bar(labels, values)
plt.ylim(175,195)
for idx, rect in enumerate(bar):
plt.text(idx, rect.get_height() + 0.5, values[idx], ha='center', color='blue')