#範例4-5:畫出極坐標的曲線方程式 import cmath import matplotlib.pyplot as plt import numpy as np ax = plt.axes(projection='polar') #設定曲線方程式p(r,theda),其中r是變數,逐漸變大 r = np.arange(0, 12, 0.1) theda = r * cmath.pi #ax.plot(r,theda) ax.plot(r,theda,'o',c='red', alpha=0.35)