how to plot a fit line
how do I add a fit line to my graph? Here is my coding:
initial_val = [100,100,100]
memo = {}
def lizardsquad(n):
if n not in memo:
memo[n] = initial_val if n == 0 else [1*lizardsquad(n-1)[0]-1*lizardsquad(n-1)[1]+2*lizardsquad(n-1)[2], 2*lizardsquad(n-1)[0]+1*lizardsquad(n-1)[1]-1*lizardsquad(n-1)[2],-1*lizardsquad(n-1)[0]+2*lizardsquad(n-1)[1]+1*lizardsquad(n-1)[2]]
return memo[n]
show(list_plot([lizardsquad(i)[0] for i in range(25)], plotjoined=True, color='blue') + (list_plot([lizardsquad(i)[1] for i in range(25)], plotjoined=True, color='orange')) + list_plot([lizardsquad(i)[2] for i in range(25)], plotjoined=True, color='yellow'))