Debian Codegraph @

examples/theme.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 leather.theme.title_font_family = 'Comic Sans MS'
18 leather.theme.legend_font_family = 'Comic Sans MS'
19 leather.theme.tick_font_family = 'Comic Sans MS'
20 leather.theme.default_series_colors = ['#ff0000', '#00ff00']
21
22 chart = leather.Chart('Theme')
23 chart.add_line(line_data)
24 chart.add_dots(dot_data)
25 chart.to_svg('examples/charts/theme.svg')