JUNGU commited on
Commit
0d61485
·
1 Parent(s): ffdb35d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -11
app.py CHANGED
@@ -61,21 +61,14 @@ if uploaded_file is not None:
61
  fig, axes = plt.subplots(2, 1, figsize=(10, 8))
62
 
63
  # RGB chart
64
-
65
- color_space_options = ["RGB", "HSV"]
66
- color_space = st.selectbox("Select Color Space", color_space_options)
67
-
68
- # Depending on the selection, plot the corresponding values
69
- if color_space == "RGB":
70
  axes[0].plot(data['R'], 'r', label='R')
71
  axes[0].plot(data['G'], 'g', label='G')
72
  axes[0].plot(data['B'], 'b', label='B')
73
- elif color_space == "HSV":
74
- axes[0].plot(data['H'], 'r', label='H')
75
- axes[0].plot(data['S'], 'g', label='S')
76
- axes[0].plot(data['V'], 'b', label='V')
77
- axes[0].legend(loc='upper right')
78
 
 
 
 
 
79
 
80
  axes[0].legend(loc='upper right')
81
  axes[0].set_title('RGB Values')
 
61
  fig, axes = plt.subplots(2, 1, figsize=(10, 8))
62
 
63
  # RGB chart
 
 
 
 
 
 
64
  axes[0].plot(data['R'], 'r', label='R')
65
  axes[0].plot(data['G'], 'g', label='G')
66
  axes[0].plot(data['B'], 'b', label='B')
 
 
 
 
 
67
 
68
+ # HSV chart
69
+ axes[1].plot(data['H'], 'r', label='H')
70
+ axes[1].plot(data['S'], 'g', label='S')
71
+ axes[1].plot(data['V'], 'b', label='V')
72
 
73
  axes[0].legend(loc='upper right')
74
  axes[0].set_title('RGB Values')