Spaces:
Running
Running
Update app.py
Browse files
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[
|
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 |
-
|
149 |
))
|
150 |
fig.add_trace(go.Scatter(
|
151 |
x=plot_df.index,
|
152 |
-
y=plot_df[
|
153 |
mode='lines',
|
154 |
line=dict(color='rgba(0,100,80,0.2)'),
|
155 |
-
|
|
|
|
|
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
|