宝塔服务器面板,一键全能部署及管理,送你10850元礼包,点我领取

对于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