I have the following function where I want to create a motion picture graph for i in range(0,20) to see how the r changes. The only problem is that I have to close the plot box