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

Function copper

source/matplot/util/colors.cpp:2546–2624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2544 return result;
2545 }
2546 std::vector<std::vector<double>> copper(size_t n) {
2547 static std::vector<std::vector<double>> map = {
2548 {0, 0, 0},
2549 {0.0198413, 0.0124, 0.00789683},
2550 {0.0396825, 0.0248, 0.0157937},
2551 {0.0595238, 0.0372, 0.0236905},
2552 {0.0793651, 0.0496, 0.0315873},
2553 {0.0992063, 0.062, 0.0394841},
2554 {0.119048, 0.0744, 0.047381},
2555 {0.138889, 0.0868, 0.0552778},
2556 {0.15873, 0.0992, 0.0631746},
2557 {0.178571, 0.1116, 0.0710714},
2558 {0.198413, 0.124, 0.0789683},
2559 {0.218254, 0.1364, 0.0868651},
2560 {0.238095, 0.1488, 0.0947619},
2561 {0.257937, 0.1612, 0.102659},
2562 {0.277778, 0.1736, 0.110556},
2563 {0.297619, 0.186, 0.118452},
2564 {0.31746, 0.1984, 0.126349},
2565 {0.337302, 0.2108, 0.134246},
2566 {0.357143, 0.2232, 0.142143},
2567 {0.376984, 0.2356, 0.15004},
2568 {0.396825, 0.248, 0.157937},
2569 {0.416667, 0.2604, 0.165833},
2570 {0.436508, 0.2728, 0.17373},
2571 {0.456349, 0.2852, 0.181627},
2572 {0.47619, 0.2976, 0.189524},
2573 {0.496032, 0.31, 0.197421},
2574 {0.515873, 0.3224, 0.205317},
2575 {0.535714, 0.3348, 0.213214},
2576 {0.555556, 0.3472, 0.221111},
2577 {0.575397, 0.3596, 0.229008},
2578 {0.595238, 0.372, 0.236905},
2579 {0.615079, 0.3844, 0.244802},
2580 {0.634921, 0.3968, 0.252698},
2581 {0.654762, 0.4092, 0.260595},
2582 {0.674603, 0.4216, 0.268492},
2583 {0.694444, 0.434, 0.276389},
2584 {0.714286, 0.4464, 0.284286},
2585 {0.734127, 0.4588, 0.292183},
2586 {0.753968, 0.4712, 0.300079},
2587 {0.77381, 0.4836, 0.307976},
2588 {0.793651, 0.496, 0.315873},
2589 {0.813492, 0.5084, 0.32377},
2590 {0.833333, 0.5208, 0.331667},
2591 {0.853175, 0.5332, 0.339563},
2592 {0.873016, 0.5456, 0.34746},
2593 {0.892857, 0.558, 0.355357},
2594 {0.912698, 0.5704, 0.363254},
2595 {0.93254, 0.5828, 0.371151},
2596 {0.952381, 0.5952, 0.379048},
2597 {0.972222, 0.6076, 0.386944},
2598 {0.992063, 0.62, 0.394841},
2599 {1, 0.6324, 0.402738},
2600 {1, 0.6448, 0.410635},
2601 {1, 0.6572, 0.418532},
2602 {1, 0.6696, 0.426429},
2603 {1, 0.682, 0.434325},

Callers

nothing calls this directly

Calls 1

colormap_interpolationFunction · 0.85

Tested by

no test coverage detected