Debian Codegraph @

examples/mixed_shapes.py

raw symbols SCIP
1 import leather
2
3 line_data = [
4 (0, 1),
5 (2, 5),
6 (4, 4),
7 (8, 3)
8 ]
9
10 dot_data = [
11 (1, 3),
12 (2, 5),
13 (6, 9),
14 (10, 4)
15 ]
16
17 chart = leather.Chart('Mixed shapes')
18 chart.add_line(line_data)
19 chart.add_dots(dot_data)
20 chart.to_svg('examples/charts/mixed_shapes.svg')