代码原型来源:
Colormap reference — Matplotlib 3.5.1 documentation
环境:
sublime text Bulid 4126
python Python 3.9.2
代码及注释:
import numpy as np
import matplotlib.pyplot as plt
cmaps = [('Perceptually Uniform Sequential', [
'viridis', 'plasma', 'inferno', 'magma', 'cividis'])
##调试时只打开一个类型
# ,
# ('Sequential', [
# 'Greys', 'Purples', 'Blues', 'Greens', 'Oranges', 'Reds',
# 'YlOrBr', 'YlOrRd', 'OrRd', 'PuRd', 'RdPu', 'BuPu',
# 'GnBu&