Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-08-31 02:59:03 -04:00
parent c9f19de176
commit 46844ab7d0
+1 -1
View File
@@ -54,7 +54,7 @@ def get_predictions(coin, render=False):
if render:
matplotlib.pyplot.gcf()
fig = model.plot(forecast_data, ylabel='log($)')
fig = model.plot(forecast_data, xlabel='Date', ylabel='log($)')
return mpld3.fig_to_html(fig)
forecast_data_orig = forecast_data # make sure we save the original forecast data