|
@@ -172,8 +172,8 @@ async def get_trend_image(kw_id):
|
|
|
|
|
|
# create an array of numbers for the dates
|
|
|
x_dates = np.array([dates.date2num(i) for i in x])
|
|
|
-
|
|
|
-
|
|
|
+ print(x)
|
|
|
+ print(kw)
|
|
|
# create more uniform intervals in x axis and use spline to interpolate data
|
|
|
x_smooth = np.linspace(x_dates.min(), x_dates.max(), 200)
|
|
|
#y_smooth = spline(x_dates, y, x_smooth)
|