I have a range of lists with same len, as below:
a=[10,56,78,90]
b=[2,8,33,10]
And I might need to include a new list, for example.
I have been using the following to plot lists a and b:
plt.plot(x,a)
plt.plot(x,b)
As you can see, I want to use the same x-axis for both of them.
However, I'd like to figure out how this piece of code should be in order to receive new lists or drop a current list dynamically.
Any thoughts on this?
tks