Abubakari commited on
Commit
e3e769d
1 Parent(s): 20c702f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -1
app.py CHANGED
@@ -85,6 +85,7 @@ cdf_values = F_BCNOLLN(y1, y2, mu1, sigma1, alpha1, beta1, mu2, sigma2, alpha2,
85
  #ax.set_xlabel('y1')
86
  #ax.set_ylabel('y2')
87
 
 
88
 
89
  # Create a 3D contour plot with Plotly
90
  fig = go.Figure(data=[go.Surface(z=pdf_values, x=y1, y=y2, colorscale='Viridis')])
@@ -98,16 +99,36 @@ fig.update_layout(title='BCNOLLN PDF 3D Contour Plot', autosize=True,
98
  # Display the plot in Streamlit
99
  st.plotly_chart(fig)
100
 
 
 
 
 
 
 
 
 
 
 
 
101
  # Create a 3D contour plot with Plotly
102
  fig = go.Figure(data=[go.Surface(z=cdf_values, x=y1, y=y2, colorscale='Viridis')])
103
  fig.update_layout(title='BCNOLLN CDF 3D Contour Plot', autosize=True,
104
  scene=dict(
105
  xaxis_title='y1',
106
  yaxis_title='y2',
107
- zaxis_title='PDF'
108
  ))
109
 
110
  # Display the plot in Streamlit
111
  st.plotly_chart(fig)
112
 
 
 
 
 
 
 
 
 
 
113
  #st.pyplot(fig)
 
85
  #ax.set_xlabel('y1')
86
  #ax.set_ylabel('y2')
87
 
88
+ st.subheader('PDF Plot')
89
 
90
  # Create a 3D contour plot with Plotly
91
  fig = go.Figure(data=[go.Surface(z=pdf_values, x=y1, y=y2, colorscale='Viridis')])
 
99
  # Display the plot in Streamlit
100
  st.plotly_chart(fig)
101
 
102
+ # Create a 2D contour plot for PDF
103
+ fig_pdf = go.Figure(data=go.Contour(z=pdf_values, x=y1, y=y2, colorscale='Viridis'))
104
+ fig_pdf.update_layout(title='BCNOLLN PDF 2D Contour Plot', autosize=True,
105
+ xaxis_title='y1', yaxis_title='y2')
106
+
107
+ # Display the PDF plot in Streamlit
108
+ st.plotly_chart(fig_pdf)
109
+
110
+
111
+ st.subheader('CDF Plot')
112
+
113
  # Create a 3D contour plot with Plotly
114
  fig = go.Figure(data=[go.Surface(z=cdf_values, x=y1, y=y2, colorscale='Viridis')])
115
  fig.update_layout(title='BCNOLLN CDF 3D Contour Plot', autosize=True,
116
  scene=dict(
117
  xaxis_title='y1',
118
  yaxis_title='y2',
119
+ zaxis_title='CDF'
120
  ))
121
 
122
  # Display the plot in Streamlit
123
  st.plotly_chart(fig)
124
 
125
+
126
+ # Create a 2D contour plot for CDF
127
+ fig_cdf = go.Figure(data=go.Contour(z=cdf_values, x=y1, y=y2, colorscale='Viridis'))
128
+ fig_cdf.update_layout(title='BCNOLLN CDF 2D Contour Plot', autosize=True,
129
+ xaxis_title='y1', yaxis_title='y2')
130
+
131
+ # Display the CDF plot in Streamlit
132
+ st.plotly_chart(fig_cdf)
133
+
134
  #st.pyplot(fig)