This is a general issue to track progress in enabling the plotting of timedelta objects. The eventual aim is for code like this to work:
import matplotlib.pyplot as plt
from datetime import timedelta
x = [1, 2]
y = [timedelta(seconds=1), timedelta(seconds=2)]
fig, ax = plt.subplots()
ax.scatter(x, y)
plt.show()
TODO
This is a general issue to track progress in enabling the plotting of
timedeltaobjects. The eventual aim is for code like this to work:TODO
timedeltato Matplotlib's internal time/date representation (float number of days) - Allow timedelta to be converted to an ordinalf #9120timedelta- Add num2timedelta method with test #8870TimedeltaFormatter- timedelta formatter #8930TimedeltaLocator(possibly along withtimedeltaversions ofSecondLocator,MinuteLocatoretc.)AutoTimedeltaLocatorTimedeltaConverterto go in the units registry