首页 > 编程知识 正文

colorbar自定义刻度,python中的颜色

时间:2023-05-04 22:56:02 阅读:41065 作者:1146

对于python绘图中的常用颜色贴图序列,可以直接从下表中选择相应的颜色设置cmap

1.camp配置示例PLT.imshow(x,cmap='plasma所有绘图函数都包含colormap类。 # https://可以设置matplotlib.org/2.0.2/API/colors _ API.html # matplotml2.0.2/users/color maps.html # 3https://color maps _ reference.htmlc maps [ ' viridis '、' plasma '、' inferno '、' magma'],#均匀感知的颜色贴图: (,[ ' greyyy ] RdPu、BuPu、GnBu、PuBu、YlGnBu、PuBuGn、BuGn、ylgn。 ' gist_yarg '、' gist_gray '、' gray '、' bone '、' pink '、' spring '、' summer '、' autumn '、' winter ' ' RdBu '、' RdYlBu '、' RdYlGn '、' Spectral '、) [ 'Pastel1'、' Pastel2'、' Paired '、' Accent '、' Dark2'、' seset ' gist_earth '、' terrain '、' gist_stern '、' gnuplot '、' gnuplot2'、' CMRmap '、' cube' 'jet '、' nipy _ ssted

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。