#NEWLINE# @ image_comparison ( baseline_images = [ 'horizontal_bar_plot' ] , extensions = [ 'png' ] ) #NEWLINE# def test_morris_horizontal_bar_plot( ) : #NEWLINE# #INDENT# Si = { #NEWLINE# #INDENT# 'mu_star' : [ 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 ] , #NEWLINE# 'names' : [ 'x1' , 'x2' , 'x3' , 'x4' , 'x5' , 'x6' ] , #NEWLINE# 'mu_star_conf' : [ 0.5 , 1 , 1.5 , 2 , 2.5 , 3.0 ] , #NEWLINE# 'sigma' : [ 0.5 , 1 , 1.5 , 2 , 2.5 , 3.0 ] , #NEWLINE# #UNINDENT# } #NEWLINE# ( fig , ax ) = plt . subplots ( 1 , 1 ) #NEWLINE# horizontal_bar_plot ( ax , Si , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , sortby = 'mu_star' , unit = 'tCO$_2$/year' )