%run talktools from bokeh.plotting import * output_notebook() import numpy as np x = np.linspace(-6, 6, 100) y = np.cos(x) circle(x, y, color="red", plot_width=500, plot_height=500) show() from bokeh.sampledata.autompg import autompg grouped = autompg.groupby("yr") mpg = grouped["mpg"] avg = mpg.mean() std = mpg.std() years = np.asarray(grouped.groups.keys()) american = autompg[autompg["origin"]==1] japanese = autompg[autompg["origin"]==3] hold(True) figure() quad(left=years-0.4, right=years+0.4, bottom=avg-std, top=avg+std, fill_alpha=0.4) circle(x=np.asarray(japanese["yr"]), y=np.asarray(japanese["mpg"]), size=8, alpha=0.4, line_color="red", fill_color=None, line_width=2) triangle(x=np.asarray(american["yr"]), y=np.asarray(american["mpg"]), size=8, alpha=0.4, line_color="blue", fill_color=None, line_width=2) hold(False) show()