I have a simple XY plot of some data (variable A vs variable B) in which each over-plotted line shows data for data for different time periods. I want to be able to colour each line (series) from a colourmap based on its date (I actually want colour by month), not just the order in which the data is added. Any thoughts on how to easily do this? Everything I read seems geared up to picking the colour based on the loop iterator, not the data itself.
My data looks like this (this is just a snippet):
DATE (YYYY-MM-DDTHH:MI:SSZ) A B
2019-11-28T13:39:00Z 8.4 5.753
2019-11-28T13:39:00Z 10.5 5.755
2019-11-28T13:39:00Z 12.4 5.753
2019-11-28T13:39:00Z 14.5 5.753
2019-11-28T13:39:00Z 16.7 5.753
2019-11-28T13:39:00Z 18.5 5.752
2019-11-28T13:39:00Z 20.2 5.75
2019-11-30T13:59:30Z 9.1 6.167
2019-11-30T13:59:30Z 10.2 6.165
2019-11-30T13:59:30Z 10.9 6.167
2019-11-30T13:59:30Z 11.8 6.166
2019-11-30T13:59:30Z 12.9 6.166
2019-11-30T13:59:30Z 13.8 6.168
2019-11-30T13:59:30Z 14.9 6.166
2019-11-30T13:59:30Z 15.9 6.165
2019-11-30T13:59:30Z 17 6.166
2019-11-30T13:59:30Z 17.9 6.166
2019-11-30T13:59:30Z 18.9 6.166
2019-11-30T13:59:30Z 20 6.168
2019-11-30T13:59:30Z 1.8 6.159
2019-11-30T13:59:30Z 2.8 6.16
2019-11-30T13:59:30Z 4 6.161
2019-11-30T13:59:30Z 5.1 6.161
2019-11-30T13:59:30Z 6.1 6.161
2019-11-30T13:59:30Z 6.9 6.165
2019-11-30T13:59:30Z 8.1 6.168
2019-12-03T13:34:30Z 3.2 5.716
2019-12-03T13:34:30Z 3.8 5.715
2019-12-03T13:34:30Z 4.8 5.714
2019-12-03T13:34:30Z 5.9 5.715
2019-12-03T13:34:30Z 7.1 5.714
2019-12-03T13:34:30Z 8.1 5.715
2019-12-03T13:34:30Z 8.8 5.722
2019-12-03T13:34:30Z 9.8 5.722
2019-12-03T13:34:30Z 10.9 5.721
2019-12-03T13:34:30Z 11.9 5.722
2019-12-03T13:34:30Z 12.9 5.722
2019-12-03T13:34:30Z 14 5.726
2019-12-03T13:34:30Z 15.3 5.728
2019-12-03T13:34:30Z 16.1 5.727
2019-12-03T13:34:30Z 16.9 5.727
2019-12-03T13:34:30Z 17.8 5.726
2019-12-03T13:34:30Z 18.9 5.728
2019-12-03T13:34:30Z 20 5.728
