Skip to content

Instantly share code, notes, and snippets.

@AntonioMarsella
Created March 17, 2020 19:24
Show Gist options
  • Save AntonioMarsella/3451b8d48d2e9afca8b9f68c9e44703a to your computer and use it in GitHub Desktop.
Save AntonioMarsella/3451b8d48d2e9afca8b9f68c9e44703a to your computer and use it in GitHub Desktop.
bokeh patches
from bokeh.io import output_file
from bokeh.plotting import figure
xs = [ [1,1,2,2,], [2,2,4], [2,2,3,3] ]
ys = [ [2,5,5,2], [3,5,5], [2,3,4,2] ]
plot = figure()
plot.patches(xs, ys, fill_color= ['red', 'blue', 'green'], line_color='white')
output_file('patches.html')
show(plot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment