Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -209,7 +209,7 @@ else:
|
|
209 |
regression_line = m * plot_df['Real Price'] + b
|
210 |
|
211 |
# Add the line of best fit to the figure with the equation as the legend name
|
212 |
-
fig.add_trace(go.Scatter(x=plot_df['Real Price'], y=regression_line, mode='lines', line=dict(color='black')))
|
213 |
|
214 |
# Update layout with appropriate titles
|
215 |
fig.update_layout(
|
@@ -217,7 +217,8 @@ else:
|
|
217 |
xaxis_title="Real Price [EUR/MWh]",
|
218 |
yaxis_title=f"{model_selection} Predictions [EUR/MWh]",
|
219 |
xaxis=dict(range=[-160, 160]), # Setting the x-axis range
|
220 |
-
yaxis=dict(range=[-150, 150]) # Setting the y-axis range
|
|
|
221 |
)
|
222 |
st.plotly_chart(fig, use_container_width=True)
|
223 |
|
|
|
209 |
regression_line = m * plot_df['Real Price'] + b
|
210 |
|
211 |
# Add the line of best fit to the figure with the equation as the legend name
|
212 |
+
fig.add_trace(go.Scatter(x=plot_df['Real Price'], y=regression_line, mode='lines', line=dict(color='black'), showlegend=False))
|
213 |
|
214 |
# Update layout with appropriate titles
|
215 |
fig.update_layout(
|
|
|
217 |
xaxis_title="Real Price [EUR/MWh]",
|
218 |
yaxis_title=f"{model_selection} Predictions [EUR/MWh]",
|
219 |
xaxis=dict(range=[-160, 160]), # Setting the x-axis range
|
220 |
+
yaxis=dict(range=[-150, 150]), # Setting the y-axis range
|
221 |
+
showlegend=False
|
222 |
)
|
223 |
st.plotly_chart(fig, use_container_width=True)
|
224 |
|