Now also plots the log of the objective function.