Following on from all my other annoying hard to understand posts I have a list:
[0,1,4,3,2,4,2,1,0]
I want each of them to have a colour using
cmap = mpl.colors.ListedColormap([[1,0,0],[0,0,1],[0,1,0],[1,1,0],[0,1,1]])
will get me colors red, blue green yellow and light blue.
What I want is the colours to start from red and end in blue and the others to be in between those colours.
I'd probably be able to do it in the same sort of way, but I'm guessing there would be better way then this using some sort of equation?