MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / spring

Function spring

source/matplot/util/colors.cpp:2114–2192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2112 return result;
2113 }
2114 std::vector<std::vector<double>> spring(size_t n) {
2115 static std::vector<std::vector<double>> map = {
2116 {1, 0, 1},
2117 {1, 0.015873, 0.984127},
2118 {1, 0.031746, 0.968254},
2119 {1, 0.047619, 0.952381},
2120 {1, 0.0634921, 0.936508},
2121 {1, 0.0793651, 0.920635},
2122 {1, 0.0952381, 0.904762},
2123 {1, 0.111111, 0.888889},
2124 {1, 0.126984, 0.873016},
2125 {1, 0.142857, 0.857143},
2126 {1, 0.15873, 0.84127},
2127 {1, 0.174603, 0.825397},
2128 {1, 0.190476, 0.809524},
2129 {1, 0.206349, 0.793651},
2130 {1, 0.222222, 0.777778},
2131 {1, 0.238095, 0.761905},
2132 {1, 0.253968, 0.746032},
2133 {1, 0.269841, 0.730159},
2134 {1, 0.285714, 0.714286},
2135 {1, 0.301587, 0.698413},
2136 {1, 0.31746, 0.68254},
2137 {1, 0.333333, 0.666667},
2138 {1, 0.349206, 0.650794},
2139 {1, 0.365079, 0.634921},
2140 {1, 0.380952, 0.619048},
2141 {1, 0.396825, 0.603175},
2142 {1, 0.412698, 0.587302},
2143 {1, 0.428571, 0.571429},
2144 {1, 0.444444, 0.555556},
2145 {1, 0.460317, 0.539683},
2146 {1, 0.47619, 0.52381},
2147 {1, 0.492063, 0.507937},
2148 {1, 0.507937, 0.492063},
2149 {1, 0.52381, 0.47619},
2150 {1, 0.539683, 0.460317},
2151 {1, 0.555556, 0.444444},
2152 {1, 0.571429, 0.428571},
2153 {1, 0.587302, 0.412698},
2154 {1, 0.603175, 0.396825},
2155 {1, 0.619048, 0.380952},
2156 {1, 0.634921, 0.365079},
2157 {1, 0.650794, 0.349206},
2158 {1, 0.666667, 0.333333},
2159 {1, 0.68254, 0.31746},
2160 {1, 0.698413, 0.301587},
2161 {1, 0.714286, 0.285714},
2162 {1, 0.730159, 0.269841},
2163 {1, 0.746032, 0.253968},
2164 {1, 0.761905, 0.238095},
2165 {1, 0.777778, 0.222222},
2166 {1, 0.793651, 0.206349},
2167 {1, 0.809524, 0.190476},
2168 {1, 0.825397, 0.174603},
2169 {1, 0.84127, 0.15873},
2170 {1, 0.857143, 0.142857},
2171 {1, 0.873016, 0.126984},

Callers 1

mainFunction · 0.85

Calls 1

colormap_interpolationFunction · 0.85

Tested by

no test coverage detected