我需要以极坐标显示两组数据之间的某些变化,因此我使用了quiver.py
模块。该类稍微复杂一些,您需要从数据库读取数据然后显示它们,这就是我使用quiver.py
模块的方式
ax0.quiver(az*degtorad, 90.-alt, U, -V*radtodeg, angles='xy', scale_units='xy', scale=1./scale_factor,\
color=color, width=0.003, headwidth=3., headlength=5.,\
label=label)
/home/extern/arcaro/my_python2/lib/python2.7/site-packages/matplotlib/quiver.py:719: RuntimeWarning: invalid value encountered in less
short = np.repeat(length < minsh, 8, axis=1)
/home/extern/arcaro/my_python2/lib/python2.7/site-packages/matplotlib/quiver.py:733: RuntimeWarning: invalid value encountered in less
tooshort = length < self.minlength
/home/extern/arcaro/my_python2/lib/python2.7/site-packages/numpy/core/fromnumeric.py:83: RuntimeWarning: invalid value encountered in reduce
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
任何想法如何解决这个问题?我的极地是空的。奇怪的是,我的一位同事使用该代码生成绘图,并且对于他来说,即使使用相同的数据,它在过去也能正常工作。
我会很乐意提供帮助!