mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-05-14 20:48:08 +00:00
Fix deprecation warning from plotly
This commit is contained in:
parent
71ca505732
commit
30e68fd467
1 changed files with 2 additions and 2 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Reference in a new issue