Abubakari commited on
Commit
20ce2de
1 Parent(s): c3207d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -23
app.py CHANGED
@@ -160,32 +160,32 @@ ax.set_ylabel('y2')
160
  st.pyplot(fig_2d)
161
 
162
  # Create a Plotly figure for the 2D contour plot
163
- fig_2d_plotly = go.Figure(data=
164
- go.Contour(
165
- z=cdf_values,
166
- x=y1, # Corresponds to Y1's axis values
167
- y=y2, # Corresponds to Y2's axis values
168
- colorscale='Viridis',
169
- contours=dict(
170
- coloring ='heatmap', # Use 'heatmap' for a filled contour plot
171
- showlabels = True, # Show labels on contours
172
- labelfont = dict( # Label font properties
173
- size = 12,
174
- color = 'white',
175
- ),
176
- )
177
- )
178
- )
179
 
180
  # Update layout of the figure
181
- fig_2d_plotly.update_layout(
182
- title='BCNOLLN CDF 2D Contour Plot',
183
- xaxis_title='y1',
184
- yaxis_title='y2',
185
- autosize=True,
186
- )
187
 
188
  # Display the plot in Streamlit
189
- st.plotly_chart(fig_2d_plotly)
190
 
191
  #st.pyplot(fig)
 
160
  st.pyplot(fig_2d)
161
 
162
  # Create a Plotly figure for the 2D contour plot
163
+ #fig_2d_plotly = go.Figure(data=
164
+ # go.Contour(
165
+ # z=cdf_values,
166
+ # x=y1, # Corresponds to Y1's axis values
167
+ # y=y2, # Corresponds to Y2's axis values
168
+ # colorscale='Viridis',
169
+ # contours=dict(
170
+ # coloring ='heatmap', # Use 'heatmap' for a filled contour plot
171
+ # showlabels = True, # Show labels on contours
172
+ # labelfont = dict( # Label font properties
173
+ # size = 12,
174
+ # color = 'white',
175
+ # ),
176
+ # )
177
+ # )
178
+ #)
179
 
180
  # Update layout of the figure
181
+ #fig_2d_plotly.update_layout(
182
+ # title='BCNOLLN CDF 2D Contour Plot',
183
+ # xaxis_title='y1',
184
+ # yaxis_title='y2',
185
+ # autosize=True,
186
+ #)
187
 
188
  # Display the plot in Streamlit
189
+ #st.plotly_chart(fig_2d_plotly)
190
 
191
  #st.pyplot(fig)