Skip to content

Instantly share code, notes, and snippets.

@AntonioMarsella
Created March 17, 2020 19:17
Show Gist options
  • Save AntonioMarsella/dad7b5da719ac9f22e55f328efbae141 to your computer and use it in GitHub Desktop.
Save AntonioMarsella/dad7b5da719ac9f22e55f328efbae141 to your computer and use it in GitHub Desktop.
lines and markers plot using bokeh glyphs
from bokeh.io import output_file, show
from bokeh.plotting import figure
x = [1,2,3,4,5]
y = [8,6,5,2,3]
plot = figure()
plot.line(x, y, line_width=2)
#to use markers
plot.circle(x, y, fill_color='white', size=10)
output_file('line.html')
show(plot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment