def _loadpresetspectrumcolormap():
    """Load the color map determined in setspectrumcolor.m."""
    import numpy as np
    interval = 10
    thr = [0, 171, 360, 490, 550, 730, 900, 1100, 2200]
    nuv = np.arange(thr[1], thr[2], interval) / 1000
    vis2 = np.arange(thr[2], thr[3], interval) / 1000
    vis3 = np.arange(thr[3], thr[4], interval) / 1000
    vis4 = np.arange(thr[4], thr[5], interval) / 1000
    nir1 = np.arange(thr[5], thr[6], interval) / 1000
    nir2 = np.arange(thr[6], thr[7], interval) / 1000
    ir = np.arange(thr[7], thr[8], interval) / 1000
    wavelengths0 = np.concatenate([nuv, vis2, vis3, vis4, nir1, nir2, ir])
    cm0 = np.array([[0.50147, 0, 0.50147], [0.53079, 0, 0.53079], [0.56012,
        0, 0.56012], [0.58944, 0, 0.58944], [0.61877, 0, 0.61877], [0.64809,
        0, 0.64809], [0.67742, 0, 0.67742], [0.70674, 0, 0.70674], [0.73607,
        0, 0.73607], [0.7654, 0, 0.7654], [0.79472, 0, 0.79472], [0.82405, 
        0, 0.82405], [0.85337, 0, 0.85337], [0.8827, 0, 0.8827], [0.91202, 
        0, 0.91202], [0.94135, 0, 0.94135], [0.97067, 0, 0.97067], [1, 0, 1
        ], [0, 0, 0.7], [0, 0, 0.8], [0, 0, 0.9], [0, 0, 1], [0, 0.066667, 
        0.95], [0, 0.13333, 0.9], [0, 0.2, 0.85], [0, 0.26667, 0.8], [0, 
        0.33333, 0.75], [0, 0.4, 0.7], [0, 0.46667, 0.65], [0, 0.53333, 0.6
        ], [0, 0.6, 0.55], [0, 0.68889, 0], [0, 0.57778, 0], [0, 0.46667, 0
        ], [0, 0.35556, 0], [0, 0.24444, 0], [0, 0.13333, 0], [0.1, 0.66667,
        0], [0.2, 0.66667, 0], [0.3, 0.66667, 0], [0.4, 0.66667, 0], [0.5, 
        0.66667, 0], [0.55, 0.6, 0], [0.6, 0.53333, 0], [0.65, 0.46667, 0],
        [0.7, 0.4, 0], [0.75, 0.33333, 0], [0.8, 0.26667, 0], [0.85, 0.2, 0
        ], [0.9, 0.13333, 0], [0.95, 0.066667, 0], [1, 0, 0], [0.9, 0, 0],
        [0.8, 0, 0], [0.7, 0, 0], [0, 0, 0], [0.053712, 0.03255, 0.0066812],
        [0.10742, 0.0651, 0.013362], [0.16114, 0.09765, 0.020044], [0.21485,
        0.1302, 0.026725], [0.26856, 0.16275, 0.033406], [0.32227, 0.1953, 
        0.040087], [0.37599, 0.22785, 0.046769], [0.4297, 0.2604, 0.05345],
        [0.48341, 0.29295, 0.060131], [0.53712, 0.3255, 0.066812], [0.59084,
        0.35805, 0.073494], [0.64455, 0.3906, 0.080175], [0.68264, 0.42315,
        0.086856], [0.65823, 0.4557, 0.093537], [0.63381, 0.48825, 0.10022],
        [0.6094, 0.5208, 0.1069], [0.1953, 0.40627, 0.44655], [0.18502, 
        0.41997, 0.44936], [0.17474, 0.43368, 0.45218], [0.16446, 0.44738, 
        0.45499], [0.16076, 0.46109, 0.4578], [0.18338, 0.47479, 0.46062],
        [0.20599, 0.4885, 0.46343], [0.22861, 0.5022, 0.46624], [0.25123, 
        0.51591, 0.46906], [0.27384, 0.52961, 0.47187], [0.29646, 0.54332, 
        0.47468], [0.31907, 0.55702, 0.47749], [0.34169, 0.57073, 0.48031],
        [0.36431, 0.58444, 0.48312], [0.38692, 0.59814, 0.48593], [0.40954,
        0.61185, 0.48875], [0.43215, 0.62555, 0.49156], [0.45477, 0.63926, 
        0.49437], [0.47738, 0.65296, 0.49719], [0.5, 0.66667, 0.5], [
        0.23214, 0.66667, 0.5], [0.21429, 0.66667, 0.5], [0.19643, 0.66667,
        0.5], [0.17857, 0.66667, 0.5], [0.16071, 0.66667, 0.5], [0.14286, 
        0.66667, 0.5], [0.125, 0.66667, 0.5], [0.10714, 0.66667, 0.5], [
        0.089286, 0.66667, 0.5], [0.071429, 0.66667, 0.5], [0.053571, 
        0.66667, 0.5], [0.035714, 0.66667, 0.5], [0.017857, 0.66667, 0.5],
        [0, 0.66667, 0.5], [0.0089286, 0.65476, 0.50893], [0.017857, 
        0.64286, 0.51786], [0.026786, 0.63095, 0.52679], [0.035714, 0.61905,
        0.53571], [0.044643, 0.60714, 0.54464], [0.053571, 0.59524, 0.55357
        ], [0.0625, 0.58333, 0.5625], [0.071429, 0.57143, 0.57143], [
        0.080357, 0.55952, 0.58036], [0.089286, 0.54762, 0.58929], [
        0.098214, 0.53571, 0.59821], [0.10714, 0.52381, 0.60714], [0.11607,
        0.5119, 0.61607], [0.125, 0.5, 0.625], [0.13393, 0.4881, 0.63393],
        [0.14286, 0.47619, 0.64286], [0.15179, 0.46429, 0.65179], [0.16071,
        0.45238, 0.66071], [0.16964, 0.44048, 0.66964], [0.17857, 0.42857, 
        0.67857], [0.1875, 0.41667, 0.6875], [0.19643, 0.40476, 0.69643], [
        0.20536, 0.39286, 0.70536], [0.21429, 0.38095, 0.71429], [0.22321, 
        0.36905, 0.72321], [0.23214, 0.35714, 0.73214], [0.24107, 0.34524, 
        0.74107], [0.25, 0.33333, 0.75], [0.26786, 0.33333, 0.73214], [
        0.28571, 0.33333, 0.71429], [0.30357, 0.33333, 0.69643], [0.32143, 
        0.33333, 0.67857], [0.33929, 0.33333, 0.66071], [0.35714, 0.33333, 
        0.64286], [0.375, 0.33333, 0.625], [0.39286, 0.33333, 0.60714], [
        0.41071, 0.33333, 0.58929], [0.42857, 0.33333, 0.57143], [0.44643, 
        0.33333, 0.55357], [0.46429, 0.33333, 0.53571], [0.48214, 0.33333, 
        0.51786], [0.5, 0.33333, 0.5], [0.51786, 0.33333, 0.48214], [
        0.53571, 0.33333, 0.46429], [0.55357, 0.33333, 0.44643], [0.57143, 
        0.33333, 0.42857], [0.58929, 0.33333, 0.41071], [0.60714, 0.33333, 
        0.39286], [0.625, 0.33333, 0.375], [0.64286, 0.33333, 0.35714], [
        0.66071, 0.33333, 0.33929], [0.67857, 0.33333, 0.32143], [0.69643, 
        0.33333, 0.30357], [0.71429, 0.33333, 0.28571], [0.73214, 0.33333, 
        0.26786], [0.75, 0.33333, 0.25], [0.74107, 0.34524, 0.24107], [
        0.73214, 0.35714, 0.23214], [0.72321, 0.36905, 0.22321], [0.71429, 
        0.38095, 0.21429], [0.70536, 0.39286, 0.20536], [0.69643, 0.40476, 
        0.19643], [0.6875, 0.41667, 0.1875], [0.67857, 0.42857, 0.17857], [
        0.66964, 0.44048, 0.16964], [0.66071, 0.45238, 0.16071], [0.65179, 
        0.46429, 0.15179], [0.64286, 0.47619, 0.14286], [0.63393, 0.4881, 
        0.13393], [0.625, 0.5, 0.125], [0.61607, 0.5119, 0.11607], [0.60714,
        0.52381, 0.10714], [0.59821, 0.53571, 0.098214], [0.58929, 0.54762,
        0.089286], [0.58036, 0.55952, 0.080357], [0.57143, 0.57143, 
        0.071429], [0.5625, 0.58333, 0.0625], [0.55357, 0.59524, 0.053571],
        [0.54464, 0.60714, 0.044643], [0.53571, 0.61905, 0.035714], [
        0.52679, 0.63095, 0.026786], [0.51786, 0.64286, 0.017857], [0.50893,
        0.65476, 0.0089286], [0.5, 0.66667, 0], [0.5, 0.66667, 0.017857], [
        0.5, 0.66667, 0.035714], [0.5, 0.66667, 0.053571], [0.5, 0.66667, 
        0.071429], [0.5, 0.66667, 0.089286], [0.5, 0.66667, 0.10714], [0.5,
        0.66667, 0.125], [0.5, 0.66667, 0.14286], [0.5, 0.66667, 0.16071],
        [0.5, 0.66667, 0.17857], [0.5, 0.66667, 0.19643], [0.5, 0.66667, 
        0.21429], [0.5, 0.66667, 0.23214]])
    return wavelengths0, cm0
