Changeset 136 for trunk/examples/test.py
- Timestamp:
- 11/03/08 16:09:40 (3 years ago)
- Files:
-
- 1 modified
-
trunk/examples/test.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/test.py
r85 r136 18 18 import cairo 19 19 20 import pycha.pie 21 import pycha.bar 22 import pycha.line 20 from pycha.pie import PieChart 21 from pycha.bar import VerticalBarChart 22 from pycha.line import LineChart 23 23 24 24 def testPie(): 25 25 surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 400, 400) 26 26 27 chart = pycha.pie.PieChart(surface)27 chart = PieChart(surface) 28 28 dataSet = ( 29 29 ('myFirstDataset', [[0, 3]]), … … 49 49 } 50 50 51 chart = pycha.bar.VerticalBarChart(surface, options)51 chart = VerticalBarChart(surface, options) 52 52 53 53 dataSet = ( … … 66 66 surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 600, 500) 67 67 68 chart = pycha.line.LineChart(surface)68 chart = LineChart(surface) 69 69 70 70 dataSet = (
