Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- source = ColumnDataSource(data=dict(
- x=[1,2,3,4,5,6],
- y=[2,2,4,5,6,7],
- desc=['type1', 'type1', 'type2','type2','type1','type1'],
- fill_color=['green','grey','grey','red','red','red'],
- #fill_alpha=0.6,
- #line_color=None
- ))
- TOOLTIPS = [
- ("index", "$index"),
- ("(x,y)", "($x, $y)"),
- ("desc", "@desc"),
- ("fill_color", "@fill_color")]
- p = figure(tools=TOOLS, plot_width=1000, tooltips=TOOLTIPS)
- p.scatter(x='x',y='y', source=source)
- output_file("color_scatter.html", title="color_scatter.py example")
- show(p) # open a browser
Add Comment
Please, Sign In to add comment