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 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 만들기)