Plotting intermediate algorithm steps.