From 8615a0e1d0be690acd460bf5812d835de4f49c3b Mon Sep 17 00:00:00 2001 From: martinb-bb <105685594+martinb-bb@users.noreply.github.com> Date: Tue, 11 Oct 2022 03:33:45 -0400 Subject: [PATCH] single day fcast (#2756) Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com> --- openbb_terminal/forecast/forecast_controller.py | 2 +- openbb_terminal/forecast/helpers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openbb_terminal/forecast/forecast_controller.py b/openbb_terminal/forecast/forecast_controller.py index 292c84fa387..8a2b27c547c 100644 --- a/openbb_terminal/forecast/forecast_controller.py +++ b/openbb_terminal/forecast/forecast_controller.py @@ -442,7 +442,7 @@ class ForecastController(BaseController): "--n-days", action="store", dest="n_days", - type=check_greater_than_one, + type=check_positive, default=5, help="prediction days.", ) diff --git a/openbb_terminal/forecast/helpers.py b/openbb_terminal/forecast/helpers.py index 2f5596b0e46..3776deb5da3 100644 --- a/openbb_terminal/forecast/helpers.py +++ b/openbb_terminal/forecast/helpers.py @@ -509,7 +509,7 @@ def plot_forecast( pred_label = f"{name} Forecast" if past_covariates: pred_label += " w/ past covs" - predicted_values.plot(label=pred_label, ax=ax, **quant_kwargs, color="#00AAFF") + predicted_values.plot(label=pred_label, **quant_kwargs, color="#00AAFF") ax.set_title( f"{name} for ${ticker_name} for next [{n_predict}] days (MAPE={precision:.2f}%)" )