I have a dataset that consists of datetime.datetime
objects in a list called x
and a list of ints called y
. I'm plotting them like so:
plt.bar(x, y)
plt.show()
How would I go about colouring all the bars after a given date another colour? I know I can get a list of bars by assigning the result of plt.bar(x, y)
but I've never messed around with matplotlib
beyond making simple plots.