I have np array or ints, each represent time since epoch (like 1513003977) I would like to plot it as dates, and found out you can do it in x the dates are in datetime.datetime format for can i convert the whole array into datetime?
It is possible to call plt.plot(dates,values)
with dates being a list of datetime.datetime
objects. The plot will include xticks in a format like '%Y-%m-%d'
and as you zoom in, automatically change to one that shows hours, minutes, seconds.