azrai99 commited on
Commit
4c68cca
·
verified ·
1 Parent(s): 91a8ee3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -140,19 +140,19 @@ def plot_forecasts(forecast_df, train_df, title):
140
  if lo_col and hi_col:
141
  fig.add_trace(go.Scatter(
142
  x=plot_df.index,
143
- y=plot_df[lo_col],
144
  mode='lines',
145
- fill='tozeroy',
146
- fillcolor='rgba(0,100,80,0.2)',
147
  line=dict(color='rgba(0,100,80,0.2)'),
148
- name='90% Confidence Interval'
149
  ))
150
  fig.add_trace(go.Scatter(
151
  x=plot_df.index,
152
- y=plot_df[hi_col],
153
  mode='lines',
154
  line=dict(color='rgba(0,100,80,0.2)'),
155
- showlegend=False
 
 
156
  ))
157
 
158
  # Update layout
 
140
  if lo_col and hi_col:
141
  fig.add_trace(go.Scatter(
142
  x=plot_df.index,
143
+ y=plot_df[hi_col],
144
  mode='lines',
 
 
145
  line=dict(color='rgba(0,100,80,0.2)'),
146
+ showlegend=False
147
  ))
148
  fig.add_trace(go.Scatter(
149
  x=plot_df.index,
150
+ y=plot_df[lo_col],
151
  mode='lines',
152
  line=dict(color='rgba(0,100,80,0.2)'),
153
+ fill='tonexty',
154
+ fillcolor='rgba(0,100,80,0.2)',
155
+ name='90% Confidence Interval'
156
  ))
157
 
158
  # Update layout