#NEWLINE# def create_annotate_figure( self , gut = 0.04 , sepx = 0.05 , sepy = 0.04 , wide = 0.09 , tall = 0.06 , **ax_kwargs ) : #NEWLINE# #INDENT# fig = plt . figure ( ) #NEWLINE# axes = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# x0 = ( ( gut + wide ) + sepx ) #NEWLINE# x1 = ( 1 - ( gut + sepx ) ) #NEWLINE# y0 = ( ( gut + tall ) + sepy ) #NEWLINE# y1 = ( 1 - gut ) #NEWLINE# ( l , b ) = ( x0 , y0 ) #NEWLINE# ( w , h ) = ( ( x1 - x0 ) , ( y1 - y0 ) ) #NEWLINE# axes [ 'img' ] = fig . add_axes ( [ l , b , w , h ] , ** ax_kwargs ) #NEWLINE# sizes = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# sizes [ 'yhi' ] = ( gut , ( ( 1 - gut ) - tall ) , wide , tall ) #NEWLINE# sizes [ 'ylo' ] = ( gut , ( ( gut + tall ) + sepy ) , wide , tall ) #NEWLINE# sizes [ 'xlo' ] = ( x0 , gut , wide , tall ) #NEWLINE# sizes [ 'xhi' ] = ( ( x1 - wide ) , gut , wide , tall ) #NEWLINE# sizes [ 'dump' ] = ( ( ( x0 + wide ) + sepx ) , gut , ( ( x1 - x0 ) - ( 2 * ( sepx + wide ) ) ) , tall ) #NEWLINE# for ( name , lbwh ) in sizes . items ( ) : #NEWLINE# #INDENT# ax = fig . add_axes ( lbwh , ** ax_kwargs ) #NEWLINE# ax . yaxis . set_visible ( False ) #NEWLINE# ax . xaxis . set_visible ( False ) #NEWLINE# axes [ name ] = ax #NEWLINE# #UNINDENT# return ( fig , axes )