Spaces:
Paused
Paused
Update app.py
Browse files24 unmodified lines2526272829303132230 unmodified lines26326426526626726826927027158 unmodified lines3303313323333343353363375 unmodified lines34334434534634734834935024 unmodified linesCOLORS = {"pred": "#1f77b4", "actual": "#f2b702", "ref": "#5a5a5a"}# ---- Plot sizing controls ----CROSS_W = 300 # px (matplotlib figure size; Streamlit will still scale)CROSS_H = 300TRACK_H = 1000 # px (plotly height; width auto-fits column)# NEW: Add a TRACK_W variable to control the widthTRACK_W = 500 # px (plotly width)230 unmodified linesax.xaxis.set_major_formatter(fmt)ax.yaxis.set_major_formatter(fmt)ax.set_xlabel("Actual UCS (psi)", fontweight="bold", fontsize=6, color="black")ax.set_ylabel("Predicted UCS (psi)", fontweight="bold", fontsize=6, color="black")ax.tick_params(labelsize=6, colors="black")ax.grid(True, linestyle=":", alpha=0.3)for spine in ax.spines.values():58 unmodified lines# Bold, black axis titles & ticksfig.update_xaxes(title_text="UCS (psi)",title_font=dict(size=16, family=BOLD_FONT, color="#000"),tickfont=dict(size=11, family=BOLD_FONT, color="#000"),side="top",range=[xmin, xmax],ticks="outside",5 unmodified lines)fig.update_yaxes(title_text=ylab,title_font=dict(size=16, family=BOLD_FONT, color="#000"),tickfont=dict(size=11, family=BOLD_FONT, color="#000"),range=y_range,ticks="outside",showline=True, linewidth=1.2, linecolor="#444", mirror=True,24 unmodified lines2526272829303132230 unmodified lines26326426526626726826927027158 unmodified lines3303313323333343353363375 unmodified lines34334434534634734834935024 unmodified linesCOLORS = {"pred": "#1f77b4", "actual": "#f2b702", "ref": "#5a5a5a"}# ---- Plot sizing controls ----CROSS_W = 200 # px (matplotlib figure size; Streamlit will still scale)CROSS_H = 200TRACK_H = 1000 # px (plotly height; width auto-fits column)# NEW: Add a TRACK_W variable to control the widthTRACK_W = 500 # px (plotly width)230 unmodified linesax.xaxis.set_major_formatter(fmt)ax.yaxis.set_major_formatter(fmt)ax.set_xlabel("Actual UCS (psi)", fontweight="bold", fontsize=8, color="black")ax.set_ylabel("Predicted UCS (psi)", fontweight="bold", fontsize=8, color="black")ax.tick_params(labelsize=4, colors="black")ax.grid(True, linestyle=":", alpha=0.3)for spine in ax.spines.values():58 unmodified lines# Bold, black axis titles & ticksfig.update_xaxes(title_text="UCS (psi)",title_font=dict(size=20, family=BOLD_FONT, color="#000"),tickfont=dict(size=15, family=BOLD_FONT, color="#000"),side="top",range=[xmin, xmax],ticks="outside",5 unmodified lines)fig.update_yaxes(title_text=ylab,title_font=dict(size=20, family=BOLD_FONT, color="#000"),tickfont=dict(size=15, family=BOLD_FONT, color="#000"),range=y_range,ticks="outside",showline=True, linewidth=1.2, linecolor="#444", mirror=True,
app.py+9-9