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)
fig.show()