爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: 言墨

[求助] python 卫星数据pcolormesh绘图

[复制链接]
发表于 2024-12-26 09:04:50 | 显示全部楼层
本帖最后由 edwardli 于 2024-12-26 09:24 编辑

正解可能如此:
pcolormesh有一个关键字参数clim,控制了colormap的阈值。如果 *vmin* 或 *vmax* 为 None,则将分别使用图像最小值/最大值进行颜色缩放。
但是,contourf没有这个关键字。

One thing to be aware of when using this limits, however, is how contourf() and pcolormesh() differ using clim or vmin/vmax. With pcolormesh(), the colormap limits will always be set based on the clim values. With contourf(), if clim or vmin/vmax values are given without contour levels, the levels will be automatically chosen, but the color limits will be correct. For example, if your data goes outside the clim range, the default colorbar will too, but all the levels outside the color limits will still be drawn - they will just be the same color.
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-12-29 17:17:45 | 显示全部楼层
edwardli 发表于 2024-12-26 09:04
正解可能如此:
pcolormesh有一个关键字参数clim,控制了colormap的阈值。如果 *vmin* 或 *vmax* 为 None ...

谢谢老师 明天上班试试
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表