Mercurial > hg > numerics
comparison numerics/bar.py @ 142:6747ce2bb090
more stubbing; almost there
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 30 Mar 2015 12:43:36 -0700 |
parents | 310290f95787 |
children | 3ca7289b09d9 |
comparison
equal
deleted
inserted
replaced
141:310290f95787 | 142:6747ce2bb090 |
---|---|
36 See: | 36 See: |
37 - http://bokeh.pydata.org/en/latest/tutorial/solutions/gallery/olympics.html | 37 - http://bokeh.pydata.org/en/latest/tutorial/solutions/gallery/olympics.html |
38 """ | 38 """ |
39 # TODO: abstract this to a plot class | 39 # TODO: abstract this to a plot class |
40 | 40 |
41 template = None # TODO | 41 template = tempita.Template.from_filename(bar_template) |
42 bar_chart = template.substitute(title=title or '', | |
43 d3=d3, | |
44 data=data) | |
42 | 45 |
43 class BarChartParser(ManipulationParser): | 46 class BarChartParser(ManipulationParser): |
44 """command line options parser for bar charts""" | 47 """command line options parser for bar charts""" |
45 # TODO: upstream to PlotParser | 48 # TODO: upstream to PlotParser |
46 | 49 |