Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,9 +41,9 @@ def draw_scatter_plot_similarity(methods_selected, x_metric, y_metric, title):
|
|
41 |
mapping=p9.aes(x=x_metric, # Use the selected x_metric
|
42 |
y=y_metric, # Use the selected y_metric
|
43 |
color='color', # Use the dynamically generated color
|
44 |
-
label='
|
45 |
-
+ p9.geom_point(
|
46 |
-
+ p9.geom_text(
|
47 |
+ p9.labs(title=title, x=f"{x_metric} Metric", y=f"{y_metric} Metric") # Dynamic labels for X and Y axes
|
48 |
+ p9.scale_color_identity() # Use colors directly from the dataframe
|
49 |
+ p9.theme(legend_position='none',
|
|
|
41 |
mapping=p9.aes(x=x_metric, # Use the selected x_metric
|
42 |
y=y_metric, # Use the selected y_metric
|
43 |
color='color', # Use the dynamically generated color
|
44 |
+
label='Method')) # Label each point by the method name
|
45 |
+
+ p9.geom_point(size=3) # Add points with no jitter, set point size
|
46 |
+
+ p9.geom_text(nudge_y=0.02, size=8) # Add method names as labels, nudge slightly above the points
|
47 |
+ p9.labs(title=title, x=f"{x_metric} Metric", y=f"{y_metric} Metric") # Dynamic labels for X and Y axes
|
48 |
+ p9.scale_color_identity() # Use colors directly from the dataframe
|
49 |
+ p9.theme(legend_position='none',
|