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