Code: Alles auswählen
TypeError: ufunc multiply cannot use operands with types dtype('<M8[ns]') and dtype('int32')
Code: Alles auswählen
x = data.index.values
In [27]: x
Out[27]:
array(['2014-11-18T12:35:00.000000000+0100',
'2014-11-18T12:36:00.000000000+0100',
'2014-11-18T12:37:00.000000000+0100'])
y = depth
In [28]: y
Out[28]:
array([ 0. , 0.5, 1. , 1.5, 2. , 2.5 ])
z = data.values[:,::-1].T
In [28]: z
Out[29]:
array([[ 11.8841629 , 12.17295074, 12.60788727, 10.25720978,
9.79065704, 9.86179352],
[ 1.89908528, 1.68134236, 3.22510457, 1.32907808,
1.25055635, 1.00592744],
[ 4.82364607, 4.84348249, 6.08075666, 4.99564314,
5.06781721, 4.50266218]])
xi,yi = np.meshgrid(x,y)
temp = plt.contourf(yi,xi,z, alpha = 0.7,cmap = cmap)