idolezal commited on
Commit
5c383cb
·
1 Parent(s): b2b5472

Heatmap: Setting the description in the HoverTool pop-up according to the X and Y axis description

Browse files
Files changed (1) hide show
  1. analyze_winscore.py +1 -1
analyze_winscore.py CHANGED
@@ -301,7 +301,7 @@ def create_heatmap(data_matrix, original_scores,
301
 
302
  # Add HoverTool for interactivity
303
  hover = HoverTool()
304
- hover.tooltips = [("Model", "@x"), ("Task", "@y"), ("DS", "@scores")] # Updated tooltip
305
  p.add_tools(hover)
306
 
307
  # Add labels with dynamic text color
 
301
 
302
  # Add HoverTool for interactivity
303
  hover = HoverTool()
304
+ hover.tooltips = [(x_axis_label, "@x"), (y_axis_label, "@y"), ("DS", "@scores")] # Updated tooltip
305
  p.add_tools(hover)
306
 
307
  # Add labels with dynamic text color