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
- 군집분석
- Data Visualization
- iris데이터
- 통계물리학
- confusion matrix
- pyplot
- 과학서적
- scatter()
- scikit-learn
- Python
- Train-Test Split
- 김범준교수
- logistic regression
- GMM
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