matplotlib.pyplot.set_cmap# matplotlib.pyplot.set_cmap(cmap)[source]# 设置默认颜色映射,并将其应用于当前图像(如果有)。 参数: cmapColormap 或 str一个颜色映射实例或已注册颜色映射的名称。 另请参阅 colormaps get_cmap