LakshmiHarika commited on
Commit
38f0e4c
·
verified ·
1 Parent(s): 4e517d4

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +5 -3
pages/Data Collection.py CHANGED
@@ -315,6 +315,7 @@ elif st.session_state.current_page == "explore_images_video":
315
  """, unsafe_allow_html=True)
316
 
317
 
 
318
  # Interactive Pixel Grid Section
319
  st.subheader("Interactive Pixel Grid")
320
 
@@ -330,15 +331,16 @@ elif st.session_state.current_page == "explore_images_video":
330
  st.write("**Pixel Grid Visualization:**")
331
  grid = np.random.rand(int(height), int(width)) # Generate random grid values
332
  fig, ax = plt.subplots()
333
- cax = ax.imshow(grid, cmap="viridis") # Display grid with 'viridis' color map
334
  plt.colorbar(cax, ax=ax) # Add color bar for context
335
  ax.set_title("Pixel Grid")
336
- ax.set_xlabel("Width")
337
- ax.set_ylabel("Height")
338
 
339
  # Render the Plot
340
  st.pyplot(fig)
341
 
 
342
  # Section: What are Color Spaces?
343
  st.write("""
344
  <div style="text-align: left; margin-top: 20px;">
 
315
  """, unsafe_allow_html=True)
316
 
317
 
318
+
319
  # Interactive Pixel Grid Section
320
  st.subheader("Interactive Pixel Grid")
321
 
 
331
  st.write("**Pixel Grid Visualization:**")
332
  grid = np.random.rand(int(height), int(width)) # Generate random grid values
333
  fig, ax = plt.subplots()
334
+ cax = ax.imshow(grid, cmap="pastel")
335
  plt.colorbar(cax, ax=ax) # Add color bar for context
336
  ax.set_title("Pixel Grid")
337
+ ax.set_xlabel("Width(pixels)", fontsize=8) # Set smaller font size
338
+ ax.set_ylabel("Height(pixels)", fontsize=8) # Set smaller font size
339
 
340
  # Render the Plot
341
  st.pyplot(fig)
342
 
343
+
344
  # Section: What are Color Spaces?
345
  st.write("""
346
  <div style="text-align: left; margin-top: 20px;">