LakshmiHarika commited on
Commit
f8b77f7
·
verified ·
1 Parent(s): 6d6d68e

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +4 -4
pages/Data Collection.py CHANGED
@@ -316,7 +316,7 @@ elif st.session_state.current_page == "explore_images_video":
316
  """, unsafe_allow_html=True)
317
  # Visualization for Grid-Like Structure
318
  st.markdown("<h4 style='color: #BB3385;'>Image as a Grid Structure</h4>", unsafe_allow_html=True)
319
- height, width = 6, 6
320
  grid = np.random.rand(height, width)
321
  fig, ax = plt.subplots()
322
  cax = ax.imshow(grid, cmap='viridis')
@@ -327,9 +327,9 @@ elif st.session_state.current_page == "explore_images_video":
327
  ax.text(j, i, f'{grid[i, j]:.2f}', ha='center', va='center', color='white', fontsize=6)
328
 
329
  # Set axis labels and title
330
- ax.set_title("Image as a Grid-Like Structure", fontsize=12)
331
- ax.set_xlabel("Width (Pixels)", fontsize=10)
332
- ax.set_ylabel("Height (Pixels)", fontsize=10)
333
  ax.set_xticks(range(width))
334
  ax.set_yticks(range(height))
335
  ax.set_xticklabels([f'Col {j+1}' for j in range(width)])
 
316
  """, unsafe_allow_html=True)
317
  # Visualization for Grid-Like Structure
318
  st.markdown("<h4 style='color: #BB3385;'>Image as a Grid Structure</h4>", unsafe_allow_html=True)
319
+ height, width = 3,3
320
  grid = np.random.rand(height, width)
321
  fig, ax = plt.subplots()
322
  cax = ax.imshow(grid, cmap='viridis')
 
327
  ax.text(j, i, f'{grid[i, j]:.2f}', ha='center', va='center', color='white', fontsize=6)
328
 
329
  # Set axis labels and title
330
+ ax.set_title("Image as a Grid-Like Structure", fontsize=5)
331
+ ax.set_xlabel("Width (Pixels)", fontsize=4)
332
+ ax.set_ylabel("Height (Pixels)", fontsize=4)
333
  ax.set_xticks(range(width))
334
  ax.set_yticks(range(height))
335
  ax.set_xticklabels([f'Col {j+1}' for j in range(width)])