plt.semilogx(w, abs(vec[:, i, 0]), label='$%s_{max}$' % d, lw=2)