wilmerags commited on
Commit
7f9ee2f
·
1 Parent(s): 71a7e2c

test: Try new placement for working legend

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -106,7 +106,7 @@ def draw_interactive_scatter_plot(
106
  p = figure(plot_width=800, plot_height=800, tools=[hover], title='2D visualization of tweets', background_fill_color="#fafafa")
107
  colors = factor_cmap("label", palette=[Pallete[n_colors][int(id_) + 1] for id_ in values_set], factors=values_set)
108
 
109
- p.add_layout(Legend(title='Topics keywords', background_fill_alpha=0.2), 'above')
110
  p.circle("x", "y", size=12, source=source, fill_alpha=0.4, line_color=colors, fill_color=colors, legend_group="original_label")
111
  p.axis.visible = False
112
  p.xgrid.grid_line_dash = "dashed"
 
106
  p = figure(plot_width=800, plot_height=800, tools=[hover], title='2D visualization of tweets', background_fill_color="#fafafa")
107
  colors = factor_cmap("label", palette=[Pallete[n_colors][int(id_) + 1] for id_ in values_set], factors=values_set)
108
 
109
+ p.add_layout(Legend(location='top_left', title='Topics keywords', background_fill_alpha=0.2), 'above')
110
  p.circle("x", "y", size=12, source=source, fill_alpha=0.4, line_color=colors, fill_color=colors, legend_group="original_label")
111
  p.axis.visible = False
112
  p.xgrid.grid_line_dash = "dashed"