- 积分
- 6240
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-6-29
- 最后登录
- 1970-1-1

|
发表于 2023-6-7 14:21:39
|
显示全部楼层
高人们,帮忙看看这个cmaps包的问题啊。着急啊,多谢给位。
File C:\Anaconda\anaconda3\lib\site-packages\cmaps-2.0.0-py3.8.egg\cmaps\cmaps.py:268 in BlWhRe
return get_cmap(cname)
NameError: name 'get_cmap' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File C:\Anaconda\anaconda3\lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)
File d:\workspace_project\python_work\pm25_from_satellite\python_corr+regress+test.py:73
c1 = ax1.contourf(nx, ny, pre_reg_cyc, np.arange(-1.5,1.6,0.1), cmap = cmaps.BlWhRe, transform = ccrs.PlateCarree())
File C:\Anaconda\anaconda3\lib\site-packages\cmaps-2.0.0-py3.8.egg\cmaps\cmaps.py:272 in BlWhRe
register_cmap(name=cname, cmap=cmap)
NameError: name 'register_cmap' is not defined |
|