Changeset 136
- Timestamp:
- 11/03/08 16:09:40 (3 years ago)
- Location:
- trunk/examples
- Files:
-
- 5 modified
-
barchart.py (modified) (1 diff)
-
linechart.py (modified) (1 diff)
-
piechart.py (modified) (1 diff)
-
scatterchart.py (modified) (2 diffs)
-
test.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/barchart.py
r85 r136 67 67 68 68 if __name__ == '__main__': 69 output = sys.argv[1] if len(sys.argv) > 1 else 'barchart.png' 69 if len(sys.argv) > 1: 70 output = sys.argv[1] 71 else: 72 output = 'barchart.png' 70 73 barChart('v' + output, pycha.bar.VerticalBarChart) 71 74 barChart('h' + output, pycha.bar.HorizontalBarChart) -
trunk/examples/linechart.py
r85 r136 61 61 62 62 if __name__ == '__main__': 63 output = sys.argv[1] if len(sys.argv) > 1 else 'linechart.png' 63 if len(sys.argv) > 1: 64 output = sys.argv[1] 65 else: 66 output = 'linechart.png' 64 67 lineChart(output) -
trunk/examples/piechart.py
r85 r136 56 56 57 57 if __name__ == '__main__': 58 output = sys.argv[1] if len(sys.argv) > 1 else 'piechart.png' 58 if len(sys.argv) > 1: 59 output = sys.argv[1] 60 else: 61 output = 'piechart.png' 59 62 pieChart(output) -
trunk/examples/scatterchart.py
r112 r136 22 22 23 23 import pycha.scatter 24 25 from lines import lines26 24 27 25 def scatterplotChart(output): … … 54 52 55 53 if __name__ == '__main__': 56 output = sys.argv[1] if len(sys.argv) > 1 else 'scatterchart.png' 54 if len(sys.argv) > 1: 55 output = sys.argv[1] 56 else: 57 output = 'scatterchart.png' 57 58 scatterplotChart(output) -
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 = (
