wenjun99 commited on
Commit
cb288d0
·
verified ·
1 Parent(s): 54ccd61

Update src/app.py

Browse files
Files changed (1) hide show
  1. src/app.py +6 -3
src/app.py CHANGED
@@ -1226,9 +1226,12 @@ with tab3:
1226
  medianprops=dict(color="black", linewidth=1.5),
1227
  whiskerprops=dict(linewidth=1.2),
1228
  capprops=dict(linewidth=1.2))
1229
- ax_box.set_ylabel("Alphabets per reaction")
1230
- ax_box.set_title("Boxplot: Distribution of Total Edited per Reaction")
1231
- ax_box.set_xticklabels(["Input"])
 
 
 
1232
 
1233
  # Apply axis styling
1234
  for attr in [ax_box.xaxis.label, ax_box.yaxis.label, ax_box.title]:
 
1226
  medianprops=dict(color="black", linewidth=1.5),
1227
  whiskerprops=dict(linewidth=1.2),
1228
  capprops=dict(linewidth=1.2))
1229
+ y_max = int(np.ceil(pos_data_bin["Total_Edited"].max() / 5) * 5)
1230
+ ax_box.set_ylim(bottom=0, top=y_max)
1231
+ ax_box.yaxis.set_major_locator(MultipleLocator(5))
1232
+ ax_box.set_ylabel("Total Edited (sum of 1s)")
1233
+ ax_box.set_title("Distribution of Total Edited per Reaction")
1234
+ ax_box.set_xticklabels(["All Reactions"])
1235
 
1236
  # Apply axis styling
1237
  for attr in [ax_box.xaxis.label, ax_box.yaxis.label, ax_box.title]: