Wajahat698 commited on
Commit
7cced23
·
verified ·
1 Parent(s): c1e76b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -217,6 +217,7 @@ def plot_model_results(results_df, average_value, title, model_type):
217
  raise
218
 
219
 
 
220
  def plot_bucket_fullness(driver_df, title):
221
  # Determine required trust buckets
222
  buckets = [
@@ -268,7 +269,7 @@ def plot_bucket_fullness(driver_df, title):
268
  zorder=2,
269
  )
270
 
271
- # Adding the percentage values on top of the bars
272
  for i, row in enumerate(results_df.itertuples(index=False, name=None)):
273
  trust_bucket, fullness_of_bucket = row
274
  ax.text(
@@ -280,8 +281,10 @@ def plot_bucket_fullness(driver_df, title):
280
  color="#8c8b8c",
281
  )
282
 
283
- y_max = results_df["Fullness_of_Bucket"].max() + 1
284
- plt.ylim(0, y_max)
 
 
285
  plt.ylabel("Fullness")
286
  plt.title(title, fontsize=14)
287
 
@@ -310,6 +313,7 @@ def plot_bucket_fullness(driver_df, title):
310
  raise
311
 
312
 
 
313
  def call_r_script(
314
  input_file,
315
  text_output_path,
 
217
  raise
218
 
219
 
220
+
221
  def plot_bucket_fullness(driver_df, title):
222
  # Determine required trust buckets
223
  buckets = [
 
269
  zorder=2,
270
  )
271
 
272
+ # Adding the fullness values on top of the bars
273
  for i, row in enumerate(results_df.itertuples(index=False, name=None)):
274
  trust_bucket, fullness_of_bucket = row
275
  ax.text(
 
281
  color="#8c8b8c",
282
  )
283
 
284
+ # Set y-axis from 1 to 10 with ticks at every integer
285
+ plt.ylim(1, 10)
286
+ plt.yticks(range(1, 11))
287
+
288
  plt.ylabel("Fullness")
289
  plt.title(title, fontsize=14)
290
 
 
313
  raise
314
 
315
 
316
+
317
  def call_r_script(
318
  input_file,
319
  text_output_path,