#NEWLINE# def __radd__( self , gg ) : #NEWLINE# #INDENT# gg = deepcopy ( gg ) #NEWLINE# ( x , y ) = ( None , None ) #NEWLINE# gg . n_dim_x = 1 #NEWLINE# facets = [ ] #NEWLINE# if self . x : #NEWLINE# #INDENT# x = gg . data . get ( self . x ) #NEWLINE# gg . n_dim_x = x . nunique ( ) #NEWLINE# facets . append ( self . x ) #NEWLINE# #UNINDENT# if self . y : #NEWLINE# #INDENT# y = gg . data . get ( self . y ) #NEWLINE# gg . n_dim_x *= y . nunique ( ) #NEWLINE# facets . append ( self . y ) #NEWLINE# #UNINDENT# n_rows = self . nrow #NEWLINE# n_cols = self . ncol #NEWLINE# if ( ( n_rows is None ) and ( n_cols is None ) ) : #NEWLINE# #INDENT# n_rows = math . ceil ( math . sqrt ( gg . n_dim_x ) ) #NEWLINE# n_cols = math . ceil ( ( gg . n_dim_x / math . ceil ( math . sqrt ( gg . n_dim_x ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( n_rows is None ) : #NEWLINE# #INDENT# n_rows = math . ceil ( ( float ( gg . n_dim_x ) / n_cols ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( n_cols is None ) : #NEWLINE# #INDENT# n_cols = math . ceil ( ( float ( gg . n_dim_x ) / n_rows ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# ( gg . n_rows , gg . n_columns ) = ( int ( n_rows ) , int ( n_cols ) ) #NEWLINE# gg . facets = facets #NEWLINE# gg . facet_type = 'wrap' #NEWLINE# gg . facet_scales = self . scales #NEWLINE# return gg