Plot error along with iteration