【发布时间】:2014-01-16 20:31:12
【问题描述】:
我遇到的问题看起来很简单:每当我绘制极坐标图时,角度刻度都由 ThetaFormatter 处理,它以度为单位标记它们。
我知道这个question,其中刻度标签被替换为风玫瑰名称,以及这个example,它看起来像matplotlib 在笛卡尔设置中做了我想要的,但我还没有找到如何在极地情节中做同样的事情......这将是最自然的!
这是一个极坐标图的简单示例:
from pylab import *
fig = figure()
axe = fig.gca(polar=True)
thetas = linspace(0,2*pi,200)
rhos = 3+cos(5*thetas)
axe.plot(thetas, rhos)
fig.show()
【问题讨论】:
标签: python numpy matplotlib polar-coordinates