Visualise a fourier decomposition in python