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

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +2 -2
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 = 3,3
320
  grid = np.random.rand(height, width)
321
  fig, ax = plt.subplots()
322
  cax = ax.imshow(grid, cmap='viridis')
@@ -324,7 +324,7 @@ elif st.session_state.current_page == "explore_images_video":
324
  # Annotate the grid with pixel labels
325
  for i in range(height):
326
  for j in range(width):
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)
 
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 = 1,1
320
  grid = np.random.rand(height, width)
321
  fig, ax = plt.subplots()
322
  cax = ax.imshow(grid, cmap='viridis')
 
324
  # Annotate the grid with pixel labels
325
  for i in range(height):
326
  for j in range(width):
327
+ ax.text(j, i, f'{grid[i, j]:.2f}', ha='center', va='center', color='white', fontsize=3)
328
 
329
  # Set axis labels and title
330
  ax.set_title("Image as a Grid-Like Structure", fontsize=5)