# HG changeset patch # User Jeff Hammel # Date 1426958502 25200 # Node ID a4e6b6ad6907fba5620b11f71e3dc94b7b46be15 # Parent cffa11cb91a076b11d74758b83b74df85fdf8517 cleanup + notes diff -r cffa11cb91a0 -r a4e6b6ad6907 numerics/bar.py --- a/numerics/bar.py Tue Mar 17 12:01:16 2015 -0700 +++ b/numerics/bar.py Sat Mar 21 10:21:42 2015 -0700 @@ -6,6 +6,8 @@ See: - http://bokeh.pydata.org/tutorial/solutions/gallery/olympics.html +- http://bokeh.pydata.org/en/latest/tutorial/topical.html +- """ # imports @@ -14,8 +16,6 @@ import tempfile from .data import transpose from .manipulate import ManipulationParser -#from bokeh.charts import Bar -#from bokeh.plotting import * from bokeh.plotting import figure, output_file, show, VBox from collections import OrderedDict @@ -37,6 +37,10 @@ tools="pan,wheel_zoom,box_zoom,reset,resize", x_range=data[0] ) + # see https://github.com/bokeh/bokeh/blob/master/bokeh/plotting_helpers.py#L277 + # for _known_tools + + if not len(data) == 2: raise NotImplementedError('TODO') # -> record TODO items