I have timestamps for every minute in a day, and am graphing the corresponding radiation data. The time is a datatime object in the following form: *forgot to mention, these are each strings
>>>timestr0
2016-05-16 00:00:00
2016-05-16 00:01:00
2016-05-16 00:02:00
2016-05-16 00:03:00
2016-05-16 00:04:00
2016-05-16 00:05:00
2016-05-16 00:06:00
2016-05-16 00:07:00
2016-05-16 00:08:00
...
this is some code that I'm working with:
import matplotlib.pyplot as plt
fig, ax = plt.subplots(1,1)
ax.plot(timestr0, dayds)
Because the time stamps are every minute, the xticks are entirely illegible. How can I format the xticks so that its every 30 minutes or so throughout the entire day? Also, is there a way to change the format so that instead of the entire date, it is just the hour and minutes (i.e. HH:mm)?
Thanks!