mgyigit commited on
Commit
1224c55
·
verified ·
1 Parent(s): bd98e11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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='method_name')) # Label each point by the method name
45
- + p9.geom_point(position="jitter") # Add points with slight jitter to avoid overlap
46
- + p9.geom_text(adjust_text=adjust_text_dict) # Add method names as labels with text adjustments
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',