matplotlib.pyplot.set_cmap

matplotlib.pyplot.set_cmap(cmap)[源代码]

设置默认颜色贴图,并将其应用于当前图像(如果有)。

参数:
cmapColormap 或str颜色映射或str

colormap实例或已注册colormap的名称。

使用实例 matplotlib.pyplot.set_cmap