def univariate_plot(lx=[],ly=[]): unew = np.arange(lx[0], lx[-1]+1, 1) f2 = InterpolatedUnivariateSpline(lx, ly) return unew,f2(unew)