πΌ λ°μ΄ν°λ€μ΄
πΈ νκΈκΉ¨μ§ λ°©μ§
# νκΈ ν¨μΉ import matplotlib as mpl import matplotlib.pyplot as plt %config InlineBackend.figure_format = 'retina' !apt -qq -y install fonts-nanum import matplotlib.font_manager as fm fontpath = '/usr/share/fonts/truetype/nanum/NanumBarunGothic.ttf' font = fm.FontProperties(fname=fontpath, size=9) plt.rc('font', family='NanumBarunGothic') mpl.font_manager._rebuild()
import matplotlib.pyplot as plt
plt.figure(dpi=200)
plt.barh(range(101), m_list)
plt.barh(range(101), f_list)
plt.show()
import matplotlib.pyplot as plt
plt.figure(dpi=200)
plt.rcParams['axes.unicode_minus'] = False
plt.title(address + " μ§μμ λ¨λ
μ
©λ³ μΈκ΅¬ λΆν¬ ")
plt.barh(range(101), m_list, label='λ¨μ±')
plt.barh(range(101), f_list, label='μ¬μ±')
plt.legend()
plt.show()