barchart.py (2115:beeeb8bb7550) barchart.py (2117:cd2f6cff36df)
1# Copyright (c) 2005-2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 267 unchanged lines hidden (view full) ---

276 chart1.data = data
277
278 chart1.xlabel = 'Benchmark'
279 chart1.ylabel = 'Bandwidth (GBps)'
280 chart1.legend = [ 'x%d' % x for x in xrange(myshape[-1]) ]
281 chart1.xticks = [ 'xtick%d' % x for x in xrange(myshape[0]) ]
282 chart1.title = 'this is the title'
283 chart1.figure_size = [0.1, 0.2, 0.7, 0.85 ]
1# Copyright (c) 2005-2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 267 unchanged lines hidden (view full) ---

276 chart1.data = data
277
278 chart1.xlabel = 'Benchmark'
279 chart1.ylabel = 'Bandwidth (GBps)'
280 chart1.legend = [ 'x%d' % x for x in xrange(myshape[-1]) ]
281 chart1.xticks = [ 'xtick%d' % x for x in xrange(myshape[0]) ]
282 chart1.title = 'this is the title'
283 chart1.figure_size = [0.1, 0.2, 0.7, 0.85 ]
284 chart1.xsubticks = [ '%d' % x for x in xrange(myshape[1]) ]
284 if len(myshape) > 1:
285 chart1.xsubticks = [ '%d' % x for x in xrange(myshape[1]) ]
285 chart1.graph()
286 chart1.savefig('/tmp/test1.png')
287 chart1.savefig('/tmp/test1.ps')
288 chart1.savefig('/tmp/test1.eps')
289 chart1.savecsv('/tmp/test1.csv')
290
291 if False:
292 chart2 = BarChart()
293 chart2.data = data
294 chart2.colormap = 'gray'
295 chart2.graph()
296 chart2.savefig('/tmp/test2.png')
297 chart2.savefig('/tmp/test2.ps')
298
299 pylab.myshow()
286 chart1.graph()
287 chart1.savefig('/tmp/test1.png')
288 chart1.savefig('/tmp/test1.ps')
289 chart1.savefig('/tmp/test1.eps')
290 chart1.savecsv('/tmp/test1.csv')
291
292 if False:
293 chart2 = BarChart()
294 chart2.data = data
295 chart2.colormap = 'gray'
296 chart2.graph()
297 chart2.savefig('/tmp/test2.png')
298 chart2.savefig('/tmp/test2.ps')
299
300 pylab.myshow()