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:
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)
line.add('test1', [1000 + cos(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'],
provides=['pygal'],
keywords=["svg", "graph", "diagram", "plot", "histogram", "kiviat"],
tests_require=["pytest"],
tests_require=["pytest", "flask"],
package_data={'pygal': ['css/*']},
install_requires=['lxml'],
classifiers=[

Loading…
Cancel
Save