Quiver plot with datetime x-axis

Hey there,

I am trying to create a quiver plot to show wind speed and direction over time. To do so I would like use a datetime x axis. However, when i try do to this i get the following type error:
TypeError: unsupported operand type(s) for +: ‘datetime.datetime’ and ‘float’

Here is how i woul dlike the plot to look: http://estuary.link/time-series-of-wind-with-colored-vectors/

I am using plotly instead of matplotlib as i want to have have this as a subplot with the x-axis linked to a concentration plot.

Sample code:

import plotly.figure_factory as ff

import numpy as np
import datetime

x = [datetime.datetime(year=2013, month=10, day=4),
     datetime.datetime(year=2013, month=11, day=5),
     datetime.datetime(year=2013, month=12, day=6)]

y = [0,0,0]
u = [1.1,1.2,1.3]
v = [-1.2,-1.3,1.4]

fig = ff.create_quiver(x, y, u, v)


@rboss9 To get your code working, map the datetime interval onto an arbitrary real interval, and set as xaxis_tickvals a few values
in the real interval, while as xaxis_ticktext, the original datetimes that are mapped to the corresponding real values.

Here is how the quiver plot looks like for an approximative mapping from the interval [datetime.date(year=2013, month=10, day=4), datetime.date(year=2013, month=12, day=6)]
to the real interval [0, 0.6]:

import plotly.figure_factory as ff
import plotly.graph_objects as go
import datetime

date = [datetime.date(year=2013, month=10, day=4),
     datetime.date(year=2013, month=11, day=5),
     datetime.date(year=2013, month=12, day=6)]
x = [0, 0.30, 0.60]
y = [0, 0, 0]
u = [1.1, 1.2, 1.3]To get ypur code working, 
v = [-1.2, -1.3, 1.4]

fig = ff.create_quiver(x, y, u, v)
fig.update_layout(width=600,height=300, xaxis_tickvals = [0, 0.3, 0.6], 
                  xaxis_ticktext=date, xaxis_tickangle=-45, xaxis_range=[min(x)-0.02, max(x)+0.15])