In [5]:
from bokeh.plotting import figure, show
from bokeh.io import output_notebook
from ahh import vis, exp
output_notebook() # similar to %matplotlib inline


Loading BokehJS ...

In [6]:
x, y = exp.arr_1d(xy=True)

In [7]:
p = figure(plot_width=950, plot_height=400, # figsize
           title='Prettify Bokeh Demonstration', # title
           )
line = p.line(x, y, legend='Red', line_color='red')
p.xaxis.axis_label = 'x' # x label
p.yaxis.axis_label = 'y' # y label
p = vis.prettify_bokeh(p) # my prettify function
show(p) # show in notebook



In [8]:
p = figure(plot_width=950, plot_height=400, # figsize
           title='Without Prettify Bokeh Demonstration', # title
           )
line = p.line(x, y, legend='Red', line_color='red')
p.xaxis.axis_label = 'x' # x label
p.yaxis.axis_label = 'y' # y label
show(p) # show in notebook



In [ ]: