#NEWLINE# def plot_boxes_by_feats( loggers ) : #NEWLINE# #INDENT# fig = figure ( ) #NEWLINE# mods = ( 'image' , 'sound' ) #NEWLINE# nb_feats = len ( loggers ) #NEWLINE# for ( i , feats ) in enumerate ( loggers ) : #NEWLINE# #INDENT# if ( i == 0 ) : #NEWLINE# #INDENT# ax1 = plt . subplot ( 1 , nb_feats , ( 1 + i ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ax = plt . subplot ( 1 , nb_feats , ( 1 + i ) , sharey = ax1 ) #NEWLINE# ax . label_outer ( ) #NEWLINE# ax . spines [ 'left' ] . set_visible ( False ) #NEWLINE# #UNINDENT# log = loggers [ feats ] #NEWLINE# ( polygons , labels ) = plot_boxes_one_exp_pairs ( log , mods , colors = 'pairs' ) #NEWLINE# plt . title ( '\n' . join ( wrap ( ', ' . join ( feats ) . replace ( '_' , '-' ) , 15 ) ) , fontsize = 'x-small' ) #NEWLINE# #UNINDENT# ax1 . set_ylabel ( 'Cross-modal association score' ) #NEWLINE# legend ( polygons , labels , fig = fig , ncol = 3 , loc = 'lower center' , bbox_to_anchor = ( 0.4 , 0.045 ) ) #NEWLINE# return fig