polished varying_ac so its xlabel will not be cut off from the plot