""" Copyright 2011 Mario Mulansky Copyright 2012 Karsten Ahnert Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) """ from pylab import * #toolset = "gcc-4.5" toolset = "intel-11.1" #toolset = "msvc" #toolset = "msvc-10.0" #bin_path = "bin/gcc-4.5/release/" bin_path = "bin/intel-linux-11.1/release/" #bin_path = "bin\\msvc-10.0\\release\\" #threading-multi\\" #extension = ".exe" extension = "" res = loadtxt( bin_path + "rk4_lorenz.dat" ) res = 100*res[0]/res bar_width = 0.6 figure(1) title("Runge-Kutta 4 with " + toolset , fontsize=20) bar( arange(6) , res , bar_width , color='blue' , linewidth=4 , edgecolor='blue' , ecolor='red') #, elinewidth=2, ecolor='red' ) xlim( -0.5 , 5.5+bar_width ) ylim( 0 , max( res ) + 10 ) xticks( arange(6)+bar_width/2 , ('array' , 'range' , 'generic' , 'NR' , 'rt gen' , 'gsl' ) ) ylabel('Performance in %' , fontsize=20) savefig( bin_path + "rk4_lorenz.png" ) show()