UCS2014 commited on
Commit
4ba39ee
·
verified ·
1 Parent(s): 946f6cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py CHANGED
@@ -29,12 +29,34 @@ CROSS_W = 500; CROSS_H = 500 # square cross-plot
29
  TRACK_W = 400; TRACK_H = 950 # log-strip style (tall, slightly wider)
30
  FONT_SZ = 13
31
  PLOT_COLS = [14, 0.3, 10] # 3-column band: left • spacer • right
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
  # =========================
34
  # Page / CSS
35
  # =========================
36
  st.set_page_config(page_title="ST_GeoMech_UCS", page_icon="logo.png", layout="wide")
37
  st.markdown("<style>header, footer{visibility:hidden !important;}</style>", unsafe_allow_html=True)
 
 
 
 
38
  st.markdown(
39
  """
40
  <style>
 
29
  TRACK_W = 400; TRACK_H = 950 # log-strip style (tall, slightly wider)
30
  FONT_SZ = 13
31
  PLOT_COLS = [14, 0.3, 10] # 3-column band: left • spacer • right
32
+ with left:
33
+ st.markdown("<div class='align-right'>", unsafe_allow_html=True)
34
+ st.plotly_chart(
35
+ cross_plot(df[TARGET], df["UCS_Pred"]),
36
+ use_container_width=False,
37
+ config={"displayModeBar": False, "scrollZoom": True}
38
+ )
39
+ st.markdown("</div>", unsafe_allow_html=True)
40
+
41
+ # spacer: leave empty
42
+
43
+ with right:
44
+ st.plotly_chart(
45
+ track_plot(df, include_actual=True), # or False on the Prediction page
46
+ use_container_width=False,
47
+ config={"displayModeBar": False, "scrollZoom": True}
48
+ )
49
+
50
 
51
  # =========================
52
  # Page / CSS
53
  # =========================
54
  st.set_page_config(page_title="ST_GeoMech_UCS", page_icon="logo.png", layout="wide")
55
  st.markdown("<style>header, footer{visibility:hidden !important;}</style>", unsafe_allow_html=True)
56
+ st.markdown(
57
+ "<style>.align-right{display:flex;justify-content:flex-end;width:100%;}</style>",
58
+ unsafe_allow_html=True
59
+ )
60
  st.markdown(
61
  """
62
  <style>