Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- 과학서적
- confusion matrix
- scikit-learn
- 김범준교수
- 군집분석
- GMM
- Python
- logistic regression
- Train-Test Split
- scatter()
- pyplot
- iris데이터
- Data Visualization
- 통계물리학
Archives
- Today
- Total
목록pyplot (1)
Basin of Attraction
python에서 pyplot.scatter()에서 마커 설정
marker 매개변수를 사용하여 동그라미(o), 사각형(s), 세모(^)를 지정할 수 있습니다. import matplotlib.pyplot as plt import numpy as np # 데이터 생성 x = np.random.randn(100) y = np.random.randn(100) # 산점도 그리기 plt.scatter(x, y, marker='o') # 동그라미 plt.scatter(x, y+1, marker='s') # 사각형 plt.scatter(x, y+2, marker='^') # 세모 # 그래프 보여주기 plt.show()
코딩
2023. 3. 2. 14:56