Skip to content

Instantly share code, notes, and snippets.

@augustfly
Created June 22, 2016 16:11
Show Gist options
  • Select an option

  • Save augustfly/3772231c65e4e224cc9a69d387713158 to your computer and use it in GitHub Desktop.

Select an option

Save augustfly/3772231c65e4e224cc9a69d387713158 to your computer and use it in GitHub Desktop.
bokeh x,y error snippet
# xerr
xerrx = [(i, j) for i, j in zip(x - xerr, x + xerr)]
xerry = [(i, i) for i in y]
bp.multi_line(xerrx, xerry, alpha=0.5)
# yerr
yerrx = [(i, i) for i in x]
yerry = [(i, j) for i, j in zip(y - yerr, y + yerr)]
bp.multi_line(yerrx, yerry, alpha=0.5)
bp.scatter(x, y, radius=radius,
fill_alpha=0.5, alpha=0.5, line_color=None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment