hussain2010 commited on
Commit
c97afb4
·
verified ·
1 Parent(s): 91a1f6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -86,7 +86,7 @@ if uploaded_file is not None:
86
  y_max = st.number_input("Upper Y-axis Limit:", value=None, format="%f")
87
  y_step = st.number_input("Y-axis Step Size:", value=10.0, format="%f")
88
  y_font_size = st.slider("Y-axis Font Size:", 8, 20, 14)
89
- y_tick_position = st.selectbox("Y-axis Tick Position:", ["out", "in", "inout"], index=0)
90
 
91
  # Title and Font Style Settings
92
  st.subheader("Title and Font Settings")
@@ -99,7 +99,7 @@ if uploaded_file is not None:
99
  st.subheader("Grid Settings")
100
  show_grid = st.checkbox("Show Grid", value=True)
101
  show_minor_grid = st.checkbox("Show Sub-grid (Minor Grid)", value=False)
102
- grid_direction = st.selectbox("Grid Direction:", ["x", "y", "both"], index=3)
103
  grid_line_style = st.selectbox("Grid Line Style:", ["-", "--", "-.", ":", "None"], index=0)
104
  grid_color = st.color_picker("Grid Line Color:", "#DDDDDD")
105
  grid_line_width = st.slider("Grid Line Width:", 0.5, 2.5, 1.0)
@@ -191,11 +191,11 @@ if uploaded_file is not None:
191
  legend_border_color = st.color_picker("Border Color:", "#000000")
192
  legend_border_width = st.slider("Border Width:", 0.5, 2.0, 1.0)
193
  legend_transparency = st.slider("Transparency (0 = fully opaque, 1 = fully transparent):", 0.0, 1.0, 0.5)
194
- legend_title = st.text_input("Legend Title:", value="Legend")
195
  legend_location = st.selectbox("Legend Location:",
196
  ["upper right", "upper center", "upper left", "center right",
197
  "center", "center left", "lower right",
198
- "lower center", "lower left"], index=0)
199
  legend_columns = st.selectbox("Legend Columns:", [1, 2, 3], index=1)
200
 
201
  # Line Style Settings
 
86
  y_max = st.number_input("Upper Y-axis Limit:", value=None, format="%f")
87
  y_step = st.number_input("Y-axis Step Size:", value=10.0, format="%f")
88
  y_font_size = st.slider("Y-axis Font Size:", 8, 20, 14)
89
+ y_tick_position = st.selectbox("Y-axis Tick Position:", ["out", "in", "inout"], index=2)
90
 
91
  # Title and Font Style Settings
92
  st.subheader("Title and Font Settings")
 
99
  st.subheader("Grid Settings")
100
  show_grid = st.checkbox("Show Grid", value=True)
101
  show_minor_grid = st.checkbox("Show Sub-grid (Minor Grid)", value=False)
102
+ grid_direction = st.selectbox("Grid Direction:", ["x", "y", "both"], index=2)
103
  grid_line_style = st.selectbox("Grid Line Style:", ["-", "--", "-.", ":", "None"], index=0)
104
  grid_color = st.color_picker("Grid Line Color:", "#DDDDDD")
105
  grid_line_width = st.slider("Grid Line Width:", 0.5, 2.5, 1.0)
 
191
  legend_border_color = st.color_picker("Border Color:", "#000000")
192
  legend_border_width = st.slider("Border Width:", 0.5, 2.0, 1.0)
193
  legend_transparency = st.slider("Transparency (0 = fully opaque, 1 = fully transparent):", 0.0, 1.0, 0.5)
194
+ legend_title = st.text_input("Legend Title:", value="")
195
  legend_location = st.selectbox("Legend Location:",
196
  ["upper right", "upper center", "upper left", "center right",
197
  "center", "center left", "lower right",
198
+ "lower center", "lower left"], index=1)
199
  legend_columns = st.selectbox("Legend Columns:", [1, 2, 3], index=1)
200
 
201
  # Line Style Settings