我想根据 >pi
的比例写入轴的弧度单位:类似的东西
$frac{pi}{4}$, $frac{pi}{2}$, ...
以
0.785, 1.5707 ...
Is there any standard way? As an example, what should I add to the following code?
from pylab import *
x=arange(-10.0,10.0,0.1)
y= arctan(x)
plot(x,y, b. )
show()
我找到了这个例子"http://matplotlib.sourceforge.net/examples/units/radioan_demo.html>
谢谢!