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

Function parula

source/matplot/util/colors.cpp:1062–1140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1060 return result;
1061 }
1062 std::vector<std::vector<double>> parula(size_t n) {
1063 static std::vector<std::vector<double>> map = {
1064 {0.2422, 0.1504, 0.6603},
1065 {0.25039, 0.164995, 0.707614},
1066 {0.257771, 0.181781, 0.751138},
1067 {0.264729, 0.197757, 0.795214},
1068 {0.270648, 0.214676, 0.836371},
1069 {0.275114, 0.234238, 0.870986},
1070 {0.2783, 0.255871, 0.899071},
1071 {0.280333, 0.278233, 0.9221},
1072 {0.281338, 0.300595, 0.941376},
1073 {0.281014, 0.322757, 0.957886},
1074 {0.279467, 0.344671, 0.971676},
1075 {0.275971, 0.366681, 0.982905},
1076 {0.269914, 0.3892, 0.9906},
1077 {0.260243, 0.412329, 0.995157},
1078 {0.244033, 0.435833, 0.998833},
1079 {0.220643, 0.460257, 0.997286},
1080 {0.196333, 0.484719, 0.989152},
1081 {0.183405, 0.507371, 0.979795},
1082 {0.178643, 0.528857, 0.968157},
1083 {0.176438, 0.549905, 0.952019},
1084 {0.168743, 0.570262, 0.935871},
1085 {0.154, 0.5902, 0.9218},
1086 {0.146029, 0.609119, 0.907857},
1087 {0.138024, 0.627629, 0.89729},
1088 {0.124814, 0.645929, 0.888343},
1089 {0.111252, 0.6635, 0.876314},
1090 {0.0952095, 0.679829, 0.859781},
1091 {0.0688714, 0.694771, 0.839357},
1092 {0.0296667, 0.708167, 0.816333},
1093 {0.00357143, 0.720267, 0.7917},
1094 {0.00665714, 0.731214, 0.766014},
1095 {0.0433286, 0.741095, 0.73941},
1096 {0.0963952, 0.75, 0.712038},
1097 {0.140771, 0.7584, 0.684157},
1098 {0.1717, 0.766962, 0.655443},
1099 {0.193767, 0.775767, 0.6251},
1100 {0.216086, 0.7843, 0.5923},
1101 {0.246957, 0.791795, 0.556743},
1102 {0.290614, 0.79729, 0.518829},
1103 {0.340643, 0.8008, 0.478857},
1104 {0.3909, 0.802871, 0.435448},
1105 {0.445629, 0.802419, 0.390919},
1106 {0.5044, 0.7993, 0.348},
1107 {0.561562, 0.794233, 0.304481},
1108 {0.617395, 0.787619, 0.261238},
1109 {0.671986, 0.779271, 0.2227},
1110 {0.7242, 0.769843, 0.191029},
1111 {0.773833, 0.759805, 0.16461},
1112 {0.820314, 0.749814, 0.153529},
1113 {0.863433, 0.7406, 0.159633},
1114 {0.903543, 0.733029, 0.177414},
1115 {0.939257, 0.728786, 0.209957},
1116 {0.972757, 0.729771, 0.239443},
1117 {0.995648, 0.743371, 0.237148},
1118 {0.996986, 0.765857, 0.219943},
1119 {0.995205, 0.789252, 0.202762},

Callers 3

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

colormap_interpolationFunction · 0.85

Tested by

no test coverage detected