Debian Codegraph @

examples/ticks.py

raw symbols SCIP
1 import leather
2
3 data = [
4 (0, 3),
5 (4, 5),
6 (7, 9),
7 (8, 4)
8 ]
9
10 chart = leather.Chart('Line')
11 chart.add_x_scale(0, 10)
12 chart.add_x_axis(ticks=[0, 10])
13 chart.add_line(data)
14 chart.to_svg('examples/charts/ticks.svg')