From 30e68fd46773878593fa6bdd9430e0891d6bd911 Mon Sep 17 00:00:00 2001 From: Ben Letham Date: Tue, 4 Feb 2020 15:55:12 -0800 Subject: [PATCH] Fix deprecation warning from plotly --- python/fbprophet/plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/fbprophet/plot.py b/python/fbprophet/plot.py index 1e3d727..2a573e4 100644 --- a/python/fbprophet/plot.py +++ b/python/fbprophet/plot.py @@ -33,7 +33,7 @@ except ImportError: try: import plotly.graph_objs as go - from plotly import tools as plotly_tools + from plotly.subplots import make_subplots except ImportError: logger.error('Importing plotly failed. Interactive plots will not work.') @@ -724,7 +724,7 @@ def plot_components_plotly( components[seasonality] = get_seasonality_plotly_props(m, seasonality) # Create Plotly subplot figure and add the components to it - fig = plotly_tools.make_subplots(rows=len(components), cols=1, print_grid=False) + fig = make_subplots(rows=len(components), cols=1, print_grid=False) fig['layout'].update(go.Layout( showlegend=False, width=figsize[0],