카테고리 없음
[파이썬] plot으로 원 그리기
오디세이99
2022. 9. 20. 10:12
728x90
반응형
import numpy as np
import matplotlib.pyplot as plt
theta = np.linspace(0, 2*np.pi, 100)
radius = 0.3
a = radius*np.cos(theta)
b = radius*np.sin(theta)
figure, axes = plt.subplots(1)
axes.plot(a, b)
axes.set_aspect(1)
plt.title('Circle using Parametric Equation')
plt.show()
728x90
반응형