ion:selected").text(),
    },
    hovermode: 'closest',
    showlegend: true,
}

x_data = get_xy_data_by_group(input, jQuery('#plotax_select').val(), rel_pairs)
y_data = get_xy_data_by_group(input, jQuery('#plotay_select').val(), rel_pairs)
var size = 12
if(input.n_samples > 20) {
    size = 10
}
if(input.n_samples > 50) {
    size = 8
}


var traces_a = []
for (i in x_data) {

    traces_a.push({
        name: rel_pairs_value_2_rel.get(parseInt(i)) == 0 ? "unrelated" : "identical",
        x: x_data[i],
  