electricpy.fftsumplot

electricpy.fftsumplot(dc, real, imag=None, freq=60, xrange=None, npts=1000, plotall=False, title='Fourier Series Summation')[source]

FFT Summation Plotter.

Function to generate the plot of the sumed FFT results.

Parameters:
  • dc (float) – The DC offset term

  • real (list of float) – Real terms of FFT (cosine terms)

  • imag (list of float) – Imaginary terms of FFT (sine terms)

  • freq (float, optional) – Fundamental (minimum nonzero) frequency in Hz, default=60

  • xrange (list of float, optional) – List of two floats containing the minimum time and the maximum time.

  • npts (int, optional) – Number of time step points, default=1000

  • title (str, optional) – String appended to plot title, default=”Fourier Series Summation”

Returns:

matplotlib.pyplot – or plotting.

Return type:

Plotting object to be used for additional configuration