Shown are typical gain G and phase shift φ plots rendered using eXtrema. The centre frequency of a low-pass filter is
The filter gain G(f) is the ratio of input and output amplitudes
and the phase shift of the output signal relative to the input is
Calculate the theoretical F0 for this filter, then make a table of n well chosen test frequencies fn that will be used to plot G(f) and φ(f). For each of these frequencies:
PhysTks, shown here, is a simple to use plotting and fitting app. Type PhysTks in a terminal window, then enter your data and click Draw to plot the data set. You do not need to calculate log(G) and log(f), simply check the Xlog and Ylog boxes.
To fit the G(f) equation enter: 1.0/sqrt(1.0+(x/A)^2) and set the fit parameter A to the calculated f0 as an initial guess. Check Fit, click Draw; the new A value displayed is the f0 result from the fit. Check also that the rolloff is as expected.
For the φ fit, set A as before, then enter -atan(x/A)*180/$pi since the atan result will be in radians.
To center the ellipse on the scope screen, click the menu button in the HORIZONTAL scope settings, then: