The following plots shows dB gain readings vs. antenna azimuth angle.
Output of run
Measuring ... Detected measurement resolution of 0.574162679426 degrees. Finding peak magnitude and angle ... Normalizing magnitude by adding 27.35dB ... -3dB beamwidth is 9.75374981761 degrees. Centering on beamwidth by rotating readings -185.501250252 degrees ... -120 degree gain = -17.3118122989dB, +120 degree gain = -20.7166668017dB. Writing results to pattern.R Done!