#NEWLINE# def test_subplot_titles_irregular_layout( ) : #NEWLINE# #INDENT# expected = Figure ( data = Data ( ) , layout = Layout ( annotations = Annotations ( [ Annotation ( x = 0.225 , y = 1.0 , xref = 'paper' , yref = 'paper' , text = 'Title 1' , showarrow = False , font = Font ( size = 16 ) , xanchor = 'center' , yanchor = 'bottom' ) , Annotation ( x = 0.775 , y = 1.0 , xref = 'paper' , yref = 'paper' , text = 'Title 2' , showarrow = False , font = Font ( size = 16 ) , xanchor = 'center' , yanchor = 'bottom' ) , Annotation ( x = 0.5 , y = 0.375 , xref = 'paper' , yref = 'paper' , text = 'Title 3' , showarrow = False , font = Font ( size = 16 ) , xanchor = 'center' , yanchor = 'bottom' ) ] ) , xaxis1 = XAxis ( domain = [ 0.0 , 0.45 ] , anchor = 'y1' ) , xaxis2 = XAxis ( domain = [ 0.55 , 1.0 ] , anchor = 'y2' ) , xaxis3 = XAxis ( domain = [ 0.0 , 1.0 ] , anchor = 'y3' ) , yaxis1 = YAxis ( domain = [ 0.625 , 1.0 ] , anchor = 'x1' ) , yaxis2 = YAxis ( domain = [ 0.625 , 1.0 ] , anchor = 'x2' ) , yaxis3 = YAxis ( domain = [ 0.0 , 0.375 ] , anchor = 'x3' ) ) ) #NEWLINE# fig = tls . make_subplots ( rows = 2 , cols = 2 , subplot_titles = ( 'Title 1' , 'Title 2' , 'Title 3' ) , specs = [ [ { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ] , [ { #NEWLINE# #INDENT# 'colspan' : 2 , #NEWLINE# #UNINDENT# } , None ] ] ) #NEWLINE# assert ( fig == fig )