📌  相关文章
📜  在 matplotlib 中绘制螺旋线 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:28.530000             🧑  作者: Mango

代码示例1
import numpy as np 
import matplotlib.pyplot as plt 
import matplotlib.cm as cm 

n = 256
angle = np.linspace(0,12*2*np.pi, n)
radius = np.linspace(.5,1.,n)

x = radius * np.cos(angle)
y = radius * np.sin(angle)

plt.scatter(x,y,c = angle, cmap = cm.hsv)
plt.show()

// Matplotlib CB