#NEWLINE# @ image_comparison ( baseline_images = [ 'sample_histograms' ] , extensions = [ 'png' ] ) #NEWLINE# def test_morris_sample_histograms( ) : #NEWLINE# #INDENT# input_1 = [ [ 0 , ( 1 / 3.0 ) ] , [ 0 , 1.0 ] , [ ( 2 / 3.0 ) , 1.0 ] ] #NEWLINE# input_2 = [ [ 0 , ( 1 / 3.0 ) ] , [ ( 2 / 3.0 ) , ( 1 / 3.0 ) ] , [ ( 2 / 3.0 ) , 1.0 ] ] #NEWLINE# input_3 = [ [ ( 2 / 3.0 ) , 0 ] , [ ( 2 / 3.0 ) , ( 2 / 3.0 ) ] , [ 0 , ( 2 / 3.0 ) ] ] #NEWLINE# input_4 = [ [ ( 1 / 3.0 ) , 1.0 ] , [ 1.0 , 1.0 ] , [ 1 , ( 1 / 3.0 ) ] ] #NEWLINE# input_5 = [ [ ( 1 / 3.0 ) , 1.0 ] , [ ( 1 / 3.0 ) , ( 1 / 3.0 ) ] , [ 1 , ( 1 / 3.0 ) ] ] #NEWLINE# input_6 = [ [ ( 1 / 3.0 ) , ( 2 / 3.0 ) ] , [ ( 1 / 3.0 ) , 0 ] , [ 1.0 , 0 ] ] #NEWLINE# input_sample = np . concatenate ( [ input_1 , input_2 , input_3 , input_4 , input_5 , input_6 ] ) #NEWLINE# problem = { #NEWLINE# #INDENT# 'num_vars' : 2 , #NEWLINE# 'groups' : None , #NEWLINE# 'names' : [ 'x1' , 'x2' ] , #NEWLINE# #UNINDENT# } #NEWLINE# fig2 = plt . figure ( ) #NEWLINE# sample_histograms ( input_sample , input_sample , problem , { #NEWLINE# #INDENT# 'color' : 'y' , #NEWLINE# #UNINDENT# } )