Debian Codegraph @

examples/temporal.py

raw symbols SCIP
1 from datetime import date
2
3 import leather
4
5 data = [
6 (date(2015, 1, 1), 3),
7 (date(2015, 3, 1), 5),
8 (date(2015, 6, 1), 9),
9 (date(2015, 9, 1), 4)
10 ]
11
12 chart = leather.Chart('Temporal')
13 chart.add_x_scale(date(2014, 1, 1), date(2016, 1, 1))
14 chart.add_line(data)
15 chart.to_svg('examples/charts/temporal.svg')