Two-dimensional scatter plot fitting

May be this thread is close to what you are looking for ?