polar_scatter.py

来自「非原创。很好的python例子」· Python 代码 · 共 19 行

PY
19
字号
#!/usr/bin/env python# a polar scatter plot; size increases radially in this example and# color increases with angle (just to verify the symbols are being# scattered correctlu).  In a real example, this would be wasting# dimensionlaity of the plotfrom pylab import *N = 150r = 2*rand(N)theta = 2*pi*rand(N) area = 200*r**2*rand(N)colors = thetaax = subplot(111, polar=True)c = scatter(theta, r, c=colors, s=area)c.set_alpha(0.75)#savefig('polar_test2')show()

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?