#NEWLINE# def make_histogram( output_prefix , name , benchmarks , unit , adjustment ) : #NEWLINE# #INDENT# if name : #NEWLINE# #INDENT# path = '{0}-{1}.svg' . format ( output_prefix , slugify ( name ) ) #NEWLINE# title = 'Speed in {0} of {1}' . format ( TIME_UNITS [ unit ] , name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# path = '{0}.svg' . format ( output_prefix ) #NEWLINE# title = 'Speed in {0}' . format ( TIME_UNITS [ unit ] ) #NEWLINE# #UNINDENT# output_file = py . path . local ( path ) . ensure ( ) #NEWLINE# plot = make_plot ( benchmarks = benchmarks , title = title , adjustment = adjustment ) #NEWLINE# plot . render_to_file ( str ( output_file ) ) #NEWLINE# return output_file