Draw a polar graph by specifying the ** polar ** method of matplotlib.pyplot. As an example ** r = 0.5 θ ** ([Archimedes Swirl](https://ja.wikipedia.org/wiki/%E4%BB%A3%E6%95%B0%E8%9E%BA%E6] Consider% 97% 8B)).
import numpy as np
import matplotlib.pyplot as plt
"""
Polar equation
Example:Archimedes Swirl
"""
theta = np.arange(0.0, 4*2*np.pi, 0.01) #Set the range of θ to 0-8π radians(4 laps)To
r = 0.5*theta ##Specify the polar equation.
plt.polar(theta,r) #Polar graph plot
plt.show()