jcmachicao commited on
Commit
e9e337d
·
verified ·
1 Parent(s): fd0c6b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -76,9 +76,11 @@ if uploaded_file is not None:
76
 
77
  fig2 = px.scatter(data_210, x='pca_1', y='pca_2', title='Distribución PCA', width=800, height=800)
78
  st.plotly_chart(fig2)
 
 
79
 
80
  plt.figure(figsize=(10, 8))
81
- plt_extracto = plt.hexbin(data_210.pca_1, data_210.pca_2, gridsize=50, cmap='inferno')
82
  plt.colorbar()
83
  plt.title('Hexbin Plot of PCA-Transformed Data')
84
  plt.xlabel('Principal Component 1')
 
76
 
77
  fig2 = px.scatter(data_210, x='pca_1', y='pca_2', title='Distribución PCA', width=800, height=800)
78
  st.plotly_chart(fig2)
79
+
80
+ GRIDSIZE = st.slider(0, 100, 10)
81
 
82
  plt.figure(figsize=(10, 8))
83
+ plt_extracto = plt.hexbin(data_210.pca_1, data_210.pca_2, gridsize=GRIDSIZE, cmap='inferno')
84
  plt.colorbar()
85
  plt.title('Hexbin Plot of PCA-Transformed Data')
86
  plt.xlabel('Principal Component 1')