unction get_colors(input, colormap) {
    var result = []
    for(i = 0; i < input.n_samples - 1; i++) {
        for(j=i+1; j < input.n_samples; j++){
            var c = getc(colormap, input.samples[i], input.samples[j])
            result.push(colors[c])
        }
    }
    return result
}

var colorscaleValue = [
  [0,   '#3D9970'],
  [0.4,   '#2D8960'],
  [0.8, '#011e3e'],
  [1,   '#001f3f']
];

var metric_b = jQuery("#plotb_select").val()

var sample_pairs = get_xy_samples(input)

var heat_data = {
   