#NEWLINE# def addPlot( self , cursor , series , Filter ) : #NEWLINE# #INDENT# self . cursor = it #NEWLINE# self . cursor . execute ( ( 'SELECT DataValue FROM DataValues' + Filter ) ) #NEWLINE# self . dataValues = [ x [ 0 ] for x in self . cursor . fetchall ( ) ] #NEWLINE# self . Series = series #NEWLINE# self . plots . clear ( ) #NEWLINE# length = len ( self . dataValues ) #NEWLINE# self . Yaxis = sorted ( self . dataValues ) #NEWLINE# self . Xaxis = [ ] #NEWLINE# for it in range ( 0 , length ) : #NEWLINE# #INDENT# curFreq = self . calcualteProbabilityFreq ( ( it + 1 ) , length ) #NEWLINE# curX = self . calculateProbabilityXPosition ( curFreq ) #NEWLINE# self . Xaxis . append ( curX ) #NEWLINE# #UNINDENT# self . plots . clear ( ) #NEWLINE# x = range ( len ( self . Xaxis ) ) #NEWLINE# self . plots . set_xlabel ( 'Cumulative Frequency < Stated Value %' ) #NEWLINE# self . plots . set_ylabel ( '\n' . join ( textwrap . wrap ( ( ( ( self . Series . variable_name + ' (' ) + self . Series . variable_units_name ) + ')' ) , 50 ) ) ) #NEWLINE# self . plots . set_title ( '\n' . join ( textwrap . wrap ( ( ( self . Series . site_name + ' ' ) + self . Series . variable_name ) , 55 ) ) ) #NEWLINE# self . plots = self . figure . add_subplot ( 111 ) #NEWLINE# self . prob = self . plots . plot ( self . Xaxis , self . Yaxis , 'bs' ) #NEWLINE# self . setXaxis ( ) #NEWLINE# self . canvas . draw ( )