edugp commited on
Commit
792a679
·
1 Parent(s): a9d1447

Hide axis and remove title, grid and logo

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -65,8 +65,13 @@ def draw_interactive_scatter_plot(
65
 
66
  source = ColumnDataSource(data=dict(x=xs, y=ys, text=texts, label=values_list, original_label=labels_list))
67
  hover = HoverTool(tooltips=[(text_column, "@text{safe}"), (label_column, "@original_label")])
68
- p = figure(plot_width=800, plot_height=800, tools=[hover], title="Embedding Lenses")
69
  p.circle("x", "y", size=10, source=source, fill_color=factor_cmap("label", palette=[Pallete[int(id_)] for id_ in values_color_set], factors=values_set))
 
 
 
 
 
70
  return p
71
 
72
 
 
65
 
66
  source = ColumnDataSource(data=dict(x=xs, y=ys, text=texts, label=values_list, original_label=labels_list))
67
  hover = HoverTool(tooltips=[(text_column, "@text{safe}"), (label_column, "@original_label")])
68
+ p = figure(plot_width=800, plot_height=800, tools=[hover])
69
  p.circle("x", "y", size=10, source=source, fill_color=factor_cmap("label", palette=[Pallete[int(id_)] for id_ in values_color_set], factors=values_set))
70
+
71
+ p.axis.visible = False
72
+ p.xgrid.grid_line_color = None
73
+ p.ygrid.grid_line_color = None
74
+ p.toolbar.logo = None
75
  return p
76
 
77