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

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

Published by

风君子

独自遨游何稽首 揭天掀地慰生平

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注