I didn't read a Python programming assignment clearly enough apparently and I'm required to have dynamically updating plot. That lab is already late and I'm not really fishing for a complete answer just a nudge in the right direction how I should implement this because thus far Ive only implemented static regular plots in matplotlib.
I'm doing this in jupyter notebook thusfar.
I already have pre-computed x (which is just indeces from 0 until the last one) and pre-computed y (for each indeces from 0 until last one). There isn't going to be new data.
the key is to have the plot start such that the first 7 x's are visible, and then for those x's, you would have the y's visible.
then the plot should update such that the 0eth x disappears, and 8th x appears and is plotted. So the it keeps rolling like a 7-sized window rightwards across those values.