t_xy_data_by_group(input, jQuery('#plotay_select').val(), rel_pairs)
    for (i in y_data) {
        traces_a[i].y = y_data[i]
    }
    Plotly.redraw('plota')
})

window.onresize = function() {
    Plotly.Plots.resize('plota');
    Plotly.Plots.resize('plotb');
};
</script>
</body>
</html>
