I do have a list of data:
a = [[Timestamp('2015-01-01 15:00:00', tz=None), 53.0, 958.0],
[Timestamp('2015-01-01 16:00:00', tz=None), 0.0, 900.0],
[Timestamp('2015-01-02 11:00:00', tz=None), 543.0, 820.0], .....]
My goal is to plot the second element of each list entry vs. the third element of each list entry colorcoded by the timestamp.
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
smap = ax.scatter(a[:,1], a[:,2])
plt.show()
As soon as I change the line for plotting to
smap = ax.scatter(a[:,1], a[:,2], c = a[:,0])
I receive the error message:
'Timestamp' object has no attribute 'view'.
I think my general question is: Is there any solution in Python to plot two columns of data color-coded by date using a third column which is a timestamp or datetime-object?


