#NEWLINE# def draw( self , equation ) : #NEWLINE# #INDENT# if ( not self . parent . abs_error ) : #NEWLINE# #INDENT# self . parent . abs_error = equation . modelAbsoluteError #NEWLINE# #UNINDENT# bincount = ( len ( self . parent . abs_error ) / 2 ) #NEWLINE# if ( bincount < 5 ) : #NEWLINE# #INDENT# bincount = 5 #NEWLINE# #UNINDENT# if ( bincount > 25 ) : #NEWLINE# #INDENT# bincount = 25 #NEWLINE# #UNINDENT# ( n , bins , patches ) = self . axes . hist ( self . parent . abs_error , bincount , rwidth = 0.8 ) #NEWLINE# ylim = self . axes . get_ylim ( ) #NEWLINE# if ( ylim [ 1 ] == max ( n ) ) : #NEWLINE# #INDENT# self . axes . set_ylim ( 0.0 , ( ylim [ 1 ] + 1 ) ) #NEWLINE# #UNINDENT# self . axes . set_title ( 'Abs Error Hist' ) #NEWLINE# self . axes . set_xlabel ( 'Absolute Error' ) #NEWLINE# self . axes . set_ylabel ( ' Frequency' )