Update app.py
Browse files
app.py
CHANGED
@@ -99,6 +99,18 @@ fig.update_layout(title='BCNOLLN PDF 3D Contour Plot', autosize=True,
|
|
99 |
# Display the plot in Streamlit
|
100 |
st.plotly_chart(fig)
|
101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
# Create a 2D contour plot for PDF using Matplotlib
|
103 |
fig_2d, ax = plt.subplots()
|
104 |
cp = ax.contourf(y1, y2, pdf_values, cmap='viridis')
|
|
|
99 |
# Display the plot in Streamlit
|
100 |
st.plotly_chart(fig)
|
101 |
|
102 |
+
# Create the contour plot
|
103 |
+
fig, ax = plt.subplots()
|
104 |
+
contours = ax.contour(Y1, Y2, pdf_values, levels=20)
|
105 |
+
ax.clabel(contours, inline=True, fontsize=8, fmt='%.3f') # Add labels to the contours
|
106 |
+
|
107 |
+
ax.set_xlabel('y1')
|
108 |
+
ax.set_ylabel('y2')
|
109 |
+
ax.set_title('BCEOLLN Distribution Contour Plot')
|
110 |
+
|
111 |
+
# Display the plot in Streamlit
|
112 |
+
st.pyplot(fig)
|
113 |
+
|
114 |
# Create a 2D contour plot for PDF using Matplotlib
|
115 |
fig_2d, ax = plt.subplots()
|
116 |
cp = ax.contourf(y1, y2, pdf_values, cmap='viridis')
|