Python matplotlib.pyplot.bar()

사용 버전: Python 3.7.6
사용 프로그램: Atom 1.45.0 x64


파이썬 matplotlib.pyplot.bar()에 대해서 알아보겠습니다.





괄호 안에는 x, height, width, bottom, align, data, color, edgecolor, linewidth, tick_label, xerr, yerr, ecolor, capsize, error_kw, log, orientation 따위가 들어갑니다.

matplotlib.pyplot.bar()은 막대그래프를 그립니다.

x에는 x축 범위가 들어갑니다.
height에는 y축 범위가 들어갑니다.








width에는 숫자가 들어갑니다.
막대의 굵기를 나타냅니다.








리스트로 막대 굵기를 따로 정할 수 있습니다.












align은 막대 바의 정렬 위치를 나타냅니다.
'center'와 'edge'를 선택할 수 있습니다.







끝.



카테고리: Python, Matplotlib

댓글

이 블로그의 인기 게시물

Python OpenCV 빈 화면 만들기

Python urllib.parse.quote()

Python bytes.fromhex()

Android AVD Ram size change

Forensics .pyc 파일 .py로 복구하기

Android Minimum touch target size

KiCad 시작하기 7 (FreeRoute 사용하기 2)

Android Notification with Full Screen

C++ OpenCV 모폴로지 침식, 팽창

KiCad 시작하기 2 (PCB 만들기)