plt.bar width

    [Matplotlib] Bar 그래프와 예제 plt.bar()

    [Matplotlib] Bar 그래프와 예제 plt.bar()

    matplotlib¶ matplotlib.pyplot 라이브러리 import In [1]: import matplotlib.pyplot as plt Bar¶ show how some quantity varies In [10]: plt.bar([1,3,0,10], [10,23,30,1]) plt.show() width¶ default = 0.8 (기본 0.8로 설정되어 있음) In [11]: plt.bar([1,2,3,4,5],[10,20,30,40,50], width=0.1) plt.show() Bar의 위치 변경¶ In [12]: def make_chart_simple_bar_chart(): movies = ["Annie Hall", "Ben-hur", "Casablanca", "Gandhi"] num..