Skip to content

Instantly share code, notes, and snippets.

@AntonioMarsella
Last active March 17, 2020 18:39
Show Gist options
  • Save AntonioMarsella/36f47e61c38d622e50b6af9643fefce2 to your computer and use it in GitHub Desktop.
Save AntonioMarsella/36f47e61c38d622e50b6af9643fefce2 to your computer and use it in GitHub Desktop.
circles with bokeh
from bokeh.io import output_file, show
from bokeh.plotting import figure
plot = figure(x_axis_label='x axis', y_axis_label='y axis',plot_width=400, tools='pan,box_zoom')
plot.circle([1,2,3,4,5], [8,6,5,2,3]) #x and y coordinates lists
output_file('circle.html')
show(plot) #save and open to the browser
plot1 = figure()
plot1.circle(x=10, y=[2,5,8,12], size=[10,20,30,40])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment