PEATSA/Core/Utilities.py
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
Returns a binary string representing a bar chart image with the given options
Returns a binary string representing a bar chart image with the given options
Returns a binary string representing a bar chart image with the given options
def CreateBarChartData(matrix, column, **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
def CreateBarChartData ( matrix , column , ** 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
Returns a binary string representing a bar chart image with the given options
Returns a binary string representing a bar chart image with the given options
'''Returns a binary string representing a bar chart image with the given options'''
matrix
column