Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def draw_scatter_plot_similarity(methods_selected, x_metric, y_metric, title):
|
|
24 |
filtered_df = df[df['method_name'].isin(methods_selected)]
|
25 |
|
26 |
def get_method_color(method):
|
27 |
-
return color_dict.get(method, 'black')
|
28 |
|
29 |
# Add a new column to the dataframe for the color
|
30 |
filtered_df['color'] = filtered_df['method_name'].apply(get_method_color)
|
|
|
24 |
filtered_df = df[df['method_name'].isin(methods_selected)]
|
25 |
|
26 |
def get_method_color(method):
|
27 |
+
return color_dict.get(method.upper(), 'black')
|
28 |
|
29 |
# Add a new column to the dataframe for the color
|
30 |
filtered_df['color'] = filtered_df['method_name'].apply(get_method_color)
|