get parameter from figure;add fitcurve.m