From 545045d615b7ee14683e8ddab7c5e376f33e560a Mon Sep 17 00:00:00 2001 From: Louis Guitton Date: Tue, 4 Dec 2018 02:05:21 +0100 Subject: [PATCH] fixed signature of plot_forecast_component in docs (#762) * fixed signature of plot_forecast_component fbprophet.plot.plot_forecast_component * modified source notebook and ran make docs --- docs/_docs/seasonality,_holiday_effects,_and_regressors.md | 2 +- notebooks/seasonality,_holiday_effects,_and_regressors.ipynb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/_docs/seasonality,_holiday_effects,_and_regressors.md b/docs/_docs/seasonality,_holiday_effects,_and_regressors.md index fa5d786..0aa159d 100644 --- a/docs/_docs/seasonality,_holiday_effects,_and_regressors.md +++ b/docs/_docs/seasonality,_holiday_effects,_and_regressors.md @@ -211,7 +211,7 @@ fig = m.plot_components(forecast) ![png](/prophet/static/seasonality,_holiday_effects,_and_regressors_files/seasonality,_holiday_effects,_and_regressors_13_0.png) -Individual holidays can be plotted using the `plot_forecast_component` function (imported from `fbprophet.plot` in Python) like `plot_forecast_component(forecast, 'superbowl')` to plot just the superbowl holiday component. +Individual holidays can be plotted using the `plot_forecast_component` function (imported from `fbprophet.plot` in Python) like `plot_forecast_component(m, forecast, 'superbowl')` to plot just the superbowl holiday component. diff --git a/notebooks/seasonality,_holiday_effects,_and_regressors.ipynb b/notebooks/seasonality,_holiday_effects,_and_regressors.ipynb index af338bc..da7cf78 100644 --- a/notebooks/seasonality,_holiday_effects,_and_regressors.ipynb +++ b/notebooks/seasonality,_holiday_effects,_and_regressors.ipynb @@ -373,7 +373,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Individual holidays can be plotted using the `plot_forecast_component` function (imported from `fbprophet.plot` in Python) like `plot_forecast_component(forecast, 'superbowl')` to plot just the superbowl holiday component." + "Individual holidays can be plotted using the `plot_forecast_component` function (imported from `fbprophet.plot` in Python) like `plot_forecast_component(m, forecast, 'superbowl')` to plot just the superbowl holiday component." ] }, { @@ -1089,7 +1089,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.3" + "version": "3.7.0" } }, "nbformat": 4,