Interactive model fitting to data