- 积分
- 66858
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-7-23
- 最后登录
- 1970-1-1
|
发表于 2024-7-1 23:34:33
来自手机
|
显示全部楼层
本帖最后由 edwardli 于 2024-7-4 15:00 编辑
sizes=dict(spacing=0.15, height=0.5,width=0.12,emptybarb=0)
版本不一样。
现在的版本(我电脑上的3.4.3的matplotlib) 还需要 注释掉for index, angle in np.ndenumerate(angles):下面的第一个if块即可
# If the vector magnitude is too weak to draw anything, plot an
# empty circle instead
#if empty_flag[index]:
# We can skip the transform since the circle has no preferred
# orientation
# barb_list.append(empty_barb)
# continue
PS. 图上的风太小了,应该是没有传递barb_increments参数,2m/s-4m/s-20m/s 默认的是5-10-50knots
|
|