fixed autoscale for fit_piecewise_polynomial function