- The sample rate;
- The actual frequency being played;
- The DFT size (number of samples);
- The amount of audio being analyzed (the length of the recording);
- The choice of "window function" (this item has a particularly outsize effect. Audacity has several to choose from), and:
- The fact that the OP is trying to represent a DFT with over 168,000 data points on an image which is only 1300 pixels wide. Some points are being omitted.