#NEWLINE# def draw( self , equation ) : #NEWLINE# #INDENT# if ( not self . parent . dep_data ) : #NEWLINE# #INDENT# self . parent . dep_data = equation . dataCache . allDataCacheDictionary [ 'DependentData' ] #NEWLINE# #UNINDENT# if ( not self . parent . per_error ) : #NEWLINE# #INDENT# self . parent . per_error = equation . modelPercentError #NEWLINE# #UNINDENT# self . axes . plot ( self . parent . dep_data , self . parent . per_error , 'D' ) #NEWLINE# if ( equation . GetDimensionality ( ) == 2 ) : #NEWLINE# #INDENT# self . axes . set_title ( 'Percent Error vs. X Data' ) #NEWLINE# self . axes . set_xlabel ( 'X Data' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . axes . set_title ( 'APercent Error vs. Z Data' ) #NEWLINE# self . axes . set_xlabel ( 'Z Data' ) #NEWLINE# #UNINDENT# self . axes . set_ylabel ( ' Percent Error' )