From ee592451f2750e780c3e8cbaddab674cff5242a2 Mon Sep 17 00:00:00 2001 From: Aziz Alto Date: Tue, 10 Nov 2020 14:21:23 -0500 Subject: [PATCH] Fix "UserWarning" in model.plot_components (#1732) See the issue https://github.com/facebook/prophet/issues/1721 --- python/fbprophet/plot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/fbprophet/plot.py b/python/fbprophet/plot.py index 9e69aad..9c1d4a9 100644 --- a/python/fbprophet/plot.py +++ b/python/fbprophet/plot.py @@ -429,6 +429,7 @@ def plot_seasonality(m, name, ax=None, uncertainty=True, figsize=(10, 6)): def set_y_as_percent(ax): yticks = 100 * ax.get_yticks() yticklabels = ['{0:.4g}%'.format(y) for y in yticks] + ax.set_yticks(ax.get_yticks().tolist()) ax.set_yticklabels(yticklabels) return ax