Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Returns a binary string representing a bar chart image with the given options

        def CreateBarChartData(matrix, column, **options):

	'''Returns a binary string representing a bar chart image with the given options'''

	print options
	options["matrix"] = matrix
	options["column"] = column
	options["outputFile"] = 'picture.png'
	options["xaxis"] = None
	CreateBarChart(**options)
	print 'Reading chart'
	stream = open('picture.png')
	data = stream.read()
	stream.close()
	os.remove('picture.png')
	print 'Done'
	
	return data
        


src/p/e/PEATDB-2.3/PEATSA/WebApp/WebScript.py   PEATDB(Download)
				#Create graph
				points = len(tool.dataDirectory.stabilityResults.total)
				data = Core.Utilities.CreateBarChartData(matrix=tool.dataDirectory.stabilityResults, column="Total", 
						xlabel="Mutant Index", ylabel="KJ/mol", title="Stability", 
						xticIncrement=int(math.ceil(points/20.0)))
				#Create graph
				points = len(tool.dataDirectory.deltaBindingResults.total)
				data = Core.Utilities.CreateBarChartData(matrix=tool.dataDirectory.deltaBindingResults, column="Total", 
						xlabel="Mutant Index", ylabel="KJ/mol", title="Binding", 
						xticIncrement=int(math.ceil(points/20.0)))