parameters: (self, *args)
docstring: Update the plotter grid.
  		This update method is dependent on the variables below.
  		Determine the x and y axis grid parameters.
  		The x axis depends on sample rate, baseband freq, and x divs.
  		The y axis depends on y per div, y divs, and ref level.
docstring_summary: Update the plotter grid.
  		This update method is dependent on the variables below.
  		Determine the x and y axis grid parameters.
  		The x axis depends on sample rate, baseband freq, and x divs.
  		The y axis depends on y per div, y divs, and ref level.
docstring_tokens: Update the plotter grid . This update method is dependent on the variables below . Determine the x and y axis grid parameters . The x axis depends on sample rate baseband freq and x divs . The y axis depends on y per div y divs and ref level .
function: def update_grid(self, *args):
  		"""
  		Update the plotter grid.
  		This update method is dependent on the variables below.
  		Determine the x and y axis grid parameters.
  		The x axis depends on sample rate, baseband freq, and x divs.
  		The y axis depends on y per div, y divs, and ref level.
  		"""
  		#grid parameters
  		#sample_rate = self[SAMPLE_RATE_KEY]
  		frame_rate = 1.0	#self[FRAME_RATE_KEY]
  		#if frame_rate < 1.0:
  		#	frame_rate = 1.0
  		x_offset = self[BASEBAND_FREQ_KEY]
  		num_lines = self[NUM_LINES_KEY]
  		y_divs = self[Y_DIVS_KEY]
  		x_divs = self[X_DIVS_KEY]
  		#determine best fitting x_per_div
  		x_width = self.data_len	#sample_rate/1.0
  		x_per_div = common.get_clean_num(x_width/x_divs)
  		#update the x grid
  		self.plotter.set_x_grid(
  			x_offset,
  			x_offset + self.data_len,	#sample_rate/2.0,
  			x_per_div, True,
  		)
  		#update x units
  		self.plotter.set_x_label('Data', 'points')
  		#update y grid
  		duration = float(num_lines)/frame_rate
  		y_per_div = common.get_clean_num(duration/y_divs)
  		self.plotter.set_y_grid(0, duration, y_per_div, True)
  		#update y units
  		self.plotter.set_y_label('Time', 's')
  		#update plotter
  		self.plotter.update()
function_tokens: def update_grid ( self , * args ) : #grid parameters #sample_rate = self[SAMPLE_RATE_KEY] frame_rate = 1.0 #self[FRAME_RATE_KEY] #if frame_rate < 1.0: #	frame_rate = 1.0 x_offset = self [ BASEBAND_FREQ_KEY ] num_lines = self [ NUM_LINES_KEY ] y_divs = self [ Y_DIVS_KEY ] x_divs = self [ X_DIVS_KEY ] #determine best fitting x_per_div x_width = self . data_len #sample_rate/1.0 x_per_div = common . get_clean_num ( x_width / x_divs ) #update the x grid self . plotter . set_x_grid ( x_offset , x_offset + self . data_len , #sample_rate/2.0, x_per_div , True , ) #update x units self . plotter . set_x_label ( 'Data' , 'points' ) #update y grid duration = float ( num_lines ) / frame_rate y_per_div = common . get_clean_num ( duration / y_divs ) self . plotter . set_y_grid ( 0 , duration , y_per_div , True ) #update y units self . plotter . set_y_label ( 'Time' , 's' ) #update plotter self . plotter . update ( )