Browse Source

Move simple test script

pull/8/head
Florian Mounier 13 years ago
parent
commit
5c82bf226e
  1. 2
      demo/simple_test.py
  2. 2
      setup.py

2
out.py → demo/simple_test.py

@ -72,7 +72,7 @@ hstackedbar.add('--->', rng3)
with open('out-horizontalstackedbar.svg', 'w') as f: with open('out-horizontalstackedbar.svg', 'w') as f:
f.write(hstackedbar.render()) f.write(hstackedbar.render())
line = Line(Config(y_scale=.0005, include_x_axis=True)) line = Line(Config(y_scale=.0005))
rng = range(-30, 31, 5) rng = range(-30, 31, 5)
line.add('test1', [1000 + cos(x / 10.) for x in rng]) line.add('test1', [1000 + cos(x / 10.) for x in rng])
line.add('test2', [1000 + sin(x / 10.) for x in rng]) line.add('test2', [1000 + sin(x / 10.) for x in rng])

2
setup.py

@ -31,7 +31,7 @@ setup(
packages=['pygal'], packages=['pygal'],
provides=['pygal'], provides=['pygal'],
keywords=["svg", "graph", "diagram", "plot", "histogram", "kiviat"], keywords=["svg", "graph", "diagram", "plot", "histogram", "kiviat"],
tests_require=["pytest"], tests_require=["pytest", "flask"],
package_data={'pygal': ['css/*']}, package_data={'pygal': ['css/*']},
install_requires=['lxml'], install_requires=['lxml'],
classifiers=[ classifiers=[

Loading…
Cancel
Save