mgyigit commited on
Commit
ec6bef2
·
verified ·
1 Parent(s): dc9c8a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ def get_baseline_df(selected_methods, selected_metrics):
22
 
23
  def create_plot(methods_selected, x_metric, y_metric):
24
  df = pd.read_csv(CSV_RESULT_PATH)
25
- filtered_df = df[df['Method'].isin(methods_selected)]
26
 
27
  # Create a Seaborn lineplot with method as hue
28
  plt.figure(figsize=(10, 8)) # Increase figure size
@@ -30,7 +30,7 @@ def create_plot(methods_selected, x_metric, y_metric):
30
  data=filtered_df,
31
  x=x_metric,
32
  y=y_metric,
33
- hue="Method", # Different colors for different methods
34
  marker="o", # Add markers to the line plot
35
  )
36
 
 
22
 
23
  def create_plot(methods_selected, x_metric, y_metric):
24
  df = pd.read_csv(CSV_RESULT_PATH)
25
+ filtered_df = df[df['method_name'].isin(methods_selected)]
26
 
27
  # Create a Seaborn lineplot with method as hue
28
  plt.figure(figsize=(10, 8)) # Increase figure size
 
30
  data=filtered_df,
31
  x=x_metric,
32
  y=y_metric,
33
+ hue="method_name", # Different colors for different methods
34
  marker="o", # Add markers to the line plot
35
  )
36