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 if len(myshape) > 1: 285 chart1.xsubticks = [ '%d' % x for x in xrange(myshape[1]) ] |
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() |