MATLAB: Python plt.plot getting unwanted lines

plot

Hi guys, I am trying to plot average usage by month. But somehow on the plot there are unwanted colorful line. The top brown line is correct, but other lines are unwanted. Maybe you know how to get rid of them, and why did they appear? I attached the image of the plot

Best Answer

I just needed to write all plot function after the for loop not in it. Thanks