I need to plot a progressing plot in matplotlib.
I have a list of lines that I need to plot. However, I need to show the lines one after the other.
Line 1: (0,0) - (0,1)
Line 2: (0,1) - (1,1)
Line 3: (1,1) - (2,2)
What I want is as follows:
I want the first graph to show only line 1
I want the second graph to show line 1 + line 2
I want the third graph to show line 1 + line 2 + line 3
I was only able to print 1 line at a time in a for a loop. How can I save a plot and then use it to add another line?