Python matplotlib.pyplot.scatter()

사용 버전: Python 3.7.4
사용 프로그램: Atom 1.44.0 x64


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

괄호 안에는 x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, verts, edgecolors, plotnonfinite, data 따위가 들어갑니다.

matplotlib.pyplot.scatter()는 점으로 만들어진 그래프를 만듭니다.

x와 y에는 리스트가 들어갑니다.












s는 크기를 나타냅니다.
정수 한 개는 모든 점의 크기에 적용되고, list로 값을 주면, 해당 위치에 맞는 점에 크기가 변합니다.








c에는 색깔을 넣습니다.
blue, green, red, cyan, magenta, yellow, black, white 따위가 들어갑니다.
간단하게, b, g, r, c, m, y, k, w로 사용할 수 있습니다.










끝.



카테고리: Python, Matplotlib

댓글

이 블로그의 인기 게시물

Python urllib.parse.quote()

KiCad 시작하기 4 (기존 회로도 수정 및 추가)

Android Notification with Full Screen

딩기 요트 명칭

Android App architecture: State holders and UI state

KiCad 시작하기 3 (새로운 소자 추가하기)

tensorflow tf.expand_dims()

외동 휴게소(부산 방향) 추천 메뉴

Android Room database FTS

서브넷 마스크 계산하기