Update app.py
Browse files
app.py
CHANGED
|
@@ -221,12 +221,13 @@ with col2:
|
|
| 221 |
paper_bgcolor="black",
|
| 222 |
font=dict(color="white"),
|
| 223 |
legend=dict(
|
| 224 |
-
x=0.
|
| 225 |
y=1.0,
|
| 226 |
bgcolor="black",
|
| 227 |
bordercolor="#001A6E",
|
| 228 |
borderwidth=2
|
| 229 |
),
|
|
|
|
| 230 |
width=800,
|
| 231 |
height=400,
|
| 232 |
showlegend=True
|
|
@@ -238,5 +239,4 @@ with col2:
|
|
| 238 |
st.error(f"⚠️ Error in visualization: {str(e)}")
|
| 239 |
|
| 240 |
col5, col6 = st.columns(2)
|
| 241 |
-
col5.info(f"🧑💻 Iteration
|
| 242 |
-
col6.success(f"✅ Current x: {st.session_state.x:.4f}, Current f(x): {st.session_state.y_vals[-1]:.4f}")
|
|
|
|
| 221 |
paper_bgcolor="black",
|
| 222 |
font=dict(color="white"),
|
| 223 |
legend=dict(
|
| 224 |
+
x=0.65, # Move legend further left to avoid overlap with the right border
|
| 225 |
y=1.0,
|
| 226 |
bgcolor="black",
|
| 227 |
bordercolor="#001A6E",
|
| 228 |
borderwidth=2
|
| 229 |
),
|
| 230 |
+
margin=dict(l=10, r=50, t=10, b=10), # Increase right margin to expand the right border
|
| 231 |
width=800,
|
| 232 |
height=400,
|
| 233 |
showlegend=True
|
|
|
|
| 239 |
st.error(f"⚠️ Error in visualization: {str(e)}")
|
| 240 |
|
| 241 |
col5, col6 = st.columns(2)
|
| 242 |
+
col5.info(f"🧑💻 Iteration
|
|
|