Do add_curve and redraw with signals
Actually do resampling in a thread