☰
Debian Codegraph
@
0.4.0-1
/
/
examples
/
ticks.py
☽
☼
examples/ticks.py
code
plain
raw
symbols
SCIP
Expat
2016 Christopher Groskopf and contributors
debian/copyright
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'
)