我正在尝试使用 Anaconda2的Windrose Notebook Example中的简单 python windrose 示例。TypeError: unbound method __init__() must be called with Affine2DBase instance as first argument (got Affine2D instance instead)
但是我在运行下面的简单代码时收到错误消息“ ”
from windrose import WindroseAxes
from matplotlib import pyplot as plt
import matplotlib.cm as cm
import numpy as np
ws = np.random.random(500) * 6
wd = np.random.random(500) * 360
ax = WindroseAxes.from_ax()
我很难理解我在网上找到的关于 affine2dbase 的信息,但我认为这可能是我的 matplotlib 安装的问题?这是我正在使用的版本
matplotlib 2.2.3 py27h263d877_0
matplotlib-base 2.2.5 py27h6595424_1 conda-forge
windrose 1.6.7 py_1 conda-forge
ipython 5.8.0 py27_0
这是以管理员身份安装 windrose 的 conda 安装信息:
(base) C:\WINDOWS\system32>conda install -c conda-forge windrose
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: C:\Users\Student\Anaconda2
added / updated specs:
- windrose
The following NEW packages will be INSTALLED:
python_abi conda-forge/win-64::python_abi-2.7-1_cp27m
The following packages will be UPDATED:
conda pkgs/main::conda-4.8.3-py27_0 --> conda-forge::conda-4.8.3-py27h8c360ce_1
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
我将不胜感激有关如何修复 windrose 的输入,以便我可以运行基本示例或如何减轻 affine2d 错误。谢谢