Update pages/1_FitInOne.py
Browse files- pages/1_FitInOne.py +1 -2
pages/1_FitInOne.py
CHANGED
|
@@ -18,7 +18,6 @@ with st.sidebar:
|
|
| 18 |
user_data = st.data_editor(data, num_rows="dynamic", key="data_editor")
|
| 19 |
xlabel = st.text_input("X label", "X-axis")
|
| 20 |
ylabel = st.text_input("Y label", "Y-axis")
|
| 21 |
-
title = st.text_input("Title", "Fit")
|
| 22 |
fit_type = st.radio(
|
| 23 |
"Choose the Type of Fit",
|
| 24 |
options=["Logarithmic", "Linear", "Linearithmic", "Quadratic", "Cubic", "Exponential"],
|
|
@@ -113,7 +112,7 @@ ax.plot(x_smooth, y_smooth, color="blue", label=f"{fit_type} Fit (R²={r2:.4f})"
|
|
| 113 |
ax.set_xlabel(xlabel)
|
| 114 |
ax.set_ylabel(ylabel)
|
| 115 |
ax.legend()
|
| 116 |
-
ax.set_title(
|
| 117 |
|
| 118 |
st.pyplot(fig)
|
| 119 |
|
|
|
|
| 18 |
user_data = st.data_editor(data, num_rows="dynamic", key="data_editor")
|
| 19 |
xlabel = st.text_input("X label", "X-axis")
|
| 20 |
ylabel = st.text_input("Y label", "Y-axis")
|
|
|
|
| 21 |
fit_type = st.radio(
|
| 22 |
"Choose the Type of Fit",
|
| 23 |
options=["Logarithmic", "Linear", "Linearithmic", "Quadratic", "Cubic", "Exponential"],
|
|
|
|
| 112 |
ax.set_xlabel(xlabel)
|
| 113 |
ax.set_ylabel(ylabel)
|
| 114 |
ax.legend()
|
| 115 |
+
ax.set_title(equation)
|
| 116 |
|
| 117 |
st.pyplot(fig)
|
| 118 |
|