I am trying to use matplotlib to plot two lists in one plot using extend, but each list with different colors
list1= [0. , 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1. , 1.1, 1.2,
1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2. , 2.1, 2.2, 2.3, 2.4]
list2=[2.5, 2.6, 2.7, 2.8, 2.9, 3. , 3.1, 3.2, 3.3, 3.4]
list1.extend(list2)
plt.plot(list1)
plt.plot(list1, '-r', list2, '-g')