I am trying to plot the power generated by a wind turbine in function of the number of hours in a day and number of days in a year.
I made this small program :
wPower1 = np.zeros((365, 24))
d = np.mat(np.arange(24))
print d
y = np.mat(np.arange(365))
for heure in range(24):
for jour in range(365):
wPower1[jour][heure] = wPower[24 * (jour - 1) + heure]
print wPower1
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.plot_surface(d, y, wPower1, rstride=1, cstride=1, linewidth=0, antialiased=False)
plt.show()
But I am getting this error:
ValueError: shape mismatch: objects cannot be broadcast to a single shape