trohith89 commited on
Commit
6cdc047
·
verified ·
1 Parent(s): ac41a1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -221,12 +221,13 @@ with col2:
221
  paper_bgcolor="black",
222
  font=dict(color="white"),
223
  legend=dict(
224
- x=0.7, # Adjust legend to the left
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: {st.session_state.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