plt.bar 예제
![[Matplotlib] Bar 그래프와 예제 plt.bar()](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbXBVGd%2FbtrzoU6LW9V%2FAAAAAAAAAAAAAAAAAAAAAEozplubFEE_S8f1P1jhqu84wzWVZ2UaRKp_fPq4pOVj%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DRVaPZ9SEE43jOymv5fg2OWu44Os%253D)
[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..