I have a numpy array with a dtype of timedelta64[ns]. However, using this as the x-axis in a matplotlib plot comes out with labels 4.320, 4.325, 4.330, etc.
It seems as if matplotlib can't properly display timedelta64, how can I convert it to datetime.timedelta?
Sample time: 12:00:00.08012
printing arr[2] returns 0 days 12:00:00.08012
x = tbl.time
f, ax = plt.subplots(2, sharex=True)
ax[0].plot(x, tbl.column, label='test', color='red')
ax[1].plot(x, tbl.column2, label='test2', color='blue')
plt.show()