from scipy.signal import resample from numpy import r_, sin from pylab import plot x = r_[0:10] y = sin(x) yy = resample(x, 100) # This is a bit tricky to get the x-samples right xx = r_[0:10:101j][:-1]