[python] Blackhole Glow using python
import matplotlib.pyplot as plt, numpy as np
plt.style.use("dark_background")
O = np.linspace(0, 10*np.pi, 2000)
r = 1/(1+0.2*O)
x, y = r*np.cos(O), r*np.sin(O)
plt.scatter(x, y, c=O, cmap="magma", s=3)
plt.axis("equal");
plt.show()

'프로그래밍 > Python' 카테고리의 다른 글
| [python] voronoi diagram for generative geometry using python (0) | 2025.09.18 |
|---|---|
| [python] 과거 당첨번호 중 출현빈도 상위 기준으로 로또번호 추출 (0) | 2025.09.11 |
| [python] ./input/ 폴더 안에 있는 엑셀파일을 찾아서 데이터 있는 셀의 앞뒤 공백을 삭제 (1) | 2025.08.28 |
| [Just Do Rust - 러스트 기초부터 고급까지](https://wikidocs.net/book/16747) (0) | 2025.08.25 |
| [python] python, rust 의 관계 (1) | 2025.08.25 |





