#NEWLINE# def push( self , value ) : #NEWLINE# #INDENT# if ( self . lag_cycles > self . samples ) : #NEWLINE# #INDENT# self . lag_cycles = 1 #NEWLINE# #UNINDENT# self . values = ( ( [ value ] * min ( self . samples , self . lag_cycles ) ) + self . values ) #NEWLINE# self . values = self . values [ : self . samples ] #NEWLINE# if ( not self . fixed_upper_bound ) : #NEWLINE# #INDENT# self . maxvalue = max ( self . values ) #NEWLINE# #UNINDENT# self . draw ( )