Create buttons for different bin sizes in the magnitude plotting function. Redraw the plot with the new downsampled array.