I would like to add a colour scale to this plot. The code below does exactly what I want. This colour scale should indicate a third value which comes from another list.
The Data I want to plot is in one list, the third value is in another and the length of these lists are different. At the moment I select the Data with a list of index (b1). So I have also to do a list of index for my third value (c1).
I thought about using a colourmap to do this, but so far I never worked with colourmaps. And also dindn't found a good explanation in the internet so far. So I hope you could help me.
b1=(35,23,33,8,38,24,40,22,28)
for i in b1:
plt.plot(x_axis,Data[i][1:21],'-', label=str(Data[i][0]))
plt.xticks(rotation=270)
plt.xlabel('Pa')
plt.ylabel('%')
plt.yscale('log')
plt.legend()
plt.title("Test")
plt.show()