#NEWLINE# def result( self , boxkwargs = None , figsize = ( 12 , 10 ) , maxpoints = 1000 ) : #NEWLINE# #INDENT# '\n\n        :return:\n        ' #NEWLINE# if ( boxkwargs is None ) : #NEWLINE# #INDENT# boxkwargs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# filtered = random . sample ( list ( self . df . index ) , maxpoints ) #NEWLINE# sampled_df = self . df . ix [ filtered ] #NEWLINE# fig = mpl . figure . Figure ( figsize = figsize , tight_layout = True ) #NEWLINE# canvas = mbb . FigureCanvasAgg ( fig ) #NEWLINE# grid = gs . GridSpec ( 4 , 3 , width_ratios = [ 4 , 4 , 1 ] , height_ratios = [ 2 , 1 , 2 , 1 ] ) #NEWLINE# axm = fig . add_subplot ( grid [ 0 ] , label = 'axm' ) #NEWLINE# axmd = fig . add_subplot ( grid [ 1 ] , label = 'axmd' ) #NEWLINE# axtm = fig . add_subplot ( grid [ 3 ] , label = 'axtm' , frameon = False ) #NEWLINE# axtmd = fig . add_subplot ( grid [ 4 ] , label = 'axtmd' , frameon = False ) #NEWLINE# axs = fig . add_subplot ( grid [ 6 ] , label = 'axs' ) #NEWLINE# axsd = fig . add_subplot ( grid [ 7 ] , label = 'axsd' ) #NEWLINE# axts = fig . add_subplot ( grid [ 9 ] , label = 'axts' , frameon = False ) #NEWLINE# axtsd = fig . add_subplot ( grid [ 10 ] , label = 'axtsd' , frameon = False ) #NEWLINE# jp . boxplot ( 'Group' , 'Mean' , sampled_df , axes = axm , legend = 'Group' , ** boxkwargs ) #NEWLINE# jp . boxplot ( 'Group' , 'Mean Delta' , sampled_df , axes = axmd , legend = 'Group' , ** boxkwargs ) #NEWLINE# jp . boxplot ( 'Group' , 'Sigma' , sampled_df , axes = axs , legend = 'Group' , ** boxkwargs ) #NEWLINE# jp . boxplot ( 'Group' , 'Sigma Delta' , sampled_df , axes = axsd , legend = 'Group' , ** boxkwargs ) #NEWLINE# jp . components . datatable ( 'Mean' , self . df , axtm , by = 'Group' , probs = 'bayes' ) #NEWLINE# jp . components . datatable ( 'Mean Delta' , self . df , axtmd , by = 'Group' , probs = 'bayes' ) #NEWLINE# jp . components . datatable ( 'Sigma' , self . df , axts , by = 'Group' , probs = 'bayes' ) #NEWLINE# jp . components . datatable ( 'Sigma Delta' , self . df , axtsd , by = 'Group' , probs = 'bayes' ) #NEWLINE# for ax in ( axm , axmd , axtm , axtmd , axs , axsd , axts , axtsd ) : #NEWLINE# #INDENT# if ( not ax ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ax . tick_params ( top = 'off' ) #NEWLINE# ax . tick_params ( bottom = 'off' ) #NEWLINE# ax . tick_params ( right = 'off' ) #NEWLINE# ax . tick_params ( left = 'off' ) #NEWLINE# #UNINDENT# fig . suptitle ( '' ) #NEWLINE# return canvas . figure