Use Of Matplotlib Pyplot In Python Iteration Process