|
|
@ -55,7 +55,6 @@ config.x_labels = map(lambda x: '%s / %s / %s' % x, |
|
|
|
map(str, rng3))) |
|
|
|
map(str, rng3))) |
|
|
|
config.title = "Stacked Bar test" |
|
|
|
config.title = "Stacked Bar test" |
|
|
|
config.style = NeonStyle |
|
|
|
config.style = NeonStyle |
|
|
|
config.horizontal = True |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stackedbar = StackedBar(config) |
|
|
|
stackedbar = StackedBar(config) |
|
|
|
stackedbar.add('@@@@@@@', rng) |
|
|
|
stackedbar.add('@@@@@@@', rng) |
|
|
@ -73,7 +72,7 @@ with open('out-horizontalstackedbar.svg', 'w') as f: |
|
|
|
f.write(hstackedbar.render()) |
|
|
|
f.write(hstackedbar.render()) |
|
|
|
|
|
|
|
|
|
|
|
line = Line(Config(y_scale=.0005, fill=True, style=NeonStyle, |
|
|
|
line = Line(Config(y_scale=.0005, fill=True, style=NeonStyle, |
|
|
|
interpolate='univariate')) |
|
|
|
interpolate='univariate', show_dots=False)) |
|
|
|
rng = range(-30, 31, 10) |
|
|
|
rng = range(-30, 31, 10) |
|
|
|
line.add('test1', [cos(x / 10.) for x in rng]) |
|
|
|
line.add('test1', [cos(x / 10.) for x in rng]) |
|
|
|
line.add('test2', [sin(x / 10.) for x in rng]) |
|
|
|
line.add('test2', [sin(x / 10.) for x in rng]) |
|
|
@ -103,11 +102,11 @@ with open('out-xy.svg', 'w') as f: |
|
|
|
f.write(xy.render()) |
|
|
|
f.write(xy.render()) |
|
|
|
|
|
|
|
|
|
|
|
pie = Pie(Config(style=NeonStyle)) |
|
|
|
pie = Pie(Config(style=NeonStyle)) |
|
|
|
pie.add('test', [11, 7, 12]) |
|
|
|
pie.add('test', [11]) |
|
|
|
pie.add('test2', [29, 21, 9]) |
|
|
|
# pie.add('test2', [29, 21, 9]) |
|
|
|
pie.add('test3', [24, 10, 32]) |
|
|
|
# pie.add('test3', [24, 10, 32]) |
|
|
|
pie.add('test4', [20, 18, 9]) |
|
|
|
# pie.add('test4', [20, 18, 9]) |
|
|
|
pie.add('test5', [17, 5, 10]) |
|
|
|
# pie.add('test5', [17, 5, 10]) |
|
|
|
pie.title = "Pie test" |
|
|
|
pie.title = "Pie test" |
|
|
|
with open('out-pie.svg', 'w') as f: |
|
|
|
with open('out-pie.svg', 'w') as f: |
|
|
|
f.write(pie.render()) |
|
|
|
f.write(pie.render()) |
|
|
|