1.安装
A package is available and can be downloaded from PyPi and installed using:
$ pip install windrose
Install latest development version
$ pip install git+/python-windrose/windrose
or
$ git clone /python-windrose/windrose$ python setup.py install
2.使用例子
需要在notebook中使用
from windrose import WindroseAxesfrom matplotlib import pyplot as pltimport matplotlib.cm as cmimport numpy as np# Create wind speed and direction variablesws = np.random.random(500) * 6wd = np.random.random(500) * 360ax = WindroseAxes.from_ax()ax.bar(wd, ws, normed=True, opening=0.8, edgecolor='white')ax.set_legend()plt.show()
3:文档和api
/python-windrose/windrose
/project/windrose/#description