parameters: (self, idx)
docstring: Implementation of base class function.
docstring_summary: Implementation of base class function.
docstring_tokens: Implementation of base class function .
function: def _update_plt_obj(self, idx):
          """
          Implementation of base class function.
          """
          emit, y_slices, all_iterations, dt = self.data[idx]
          np_data = np.zeros(len(all_iterations))
          for index, ts in enumerate(all_iterations):
              np_data[index] = emit[index][0]
          if self.plt_lin:
              self.plt_lin.remove()
          ps = 1.e12  # for conversion from s to ps
          # np_data * 1.e6 converts emittance to pi mm mrad
          self.plt_obj[idx].set_data(all_iterations * dt * ps, np_data * 1.e6)
          if self.cur_iteration:
              self.plt_lin = self.ax.axvline(self.cur_iteration * dt * ps,
                                             color='#FF6600')
function_tokens: def _update_plt_obj ( self , idx ) : emit , y_slices , all_iterations , dt = self . data [ idx ] np_data = np . zeros ( len ( all_iterations ) ) for index , ts in enumerate ( all_iterations ) : np_data [ index ] = emit [ index ] [ 0 ] if self . plt_lin : self . plt_lin . remove ( ) ps = 1.e12 # for conversion from s to ps # np_data * 1.e6 converts emittance to pi mm mrad self . plt_obj [ idx ] . set_data ( all_iterations * dt * ps , np_data * 1.e6 ) if self . cur_iteration : self . plt_lin = self . ax . axvline ( self . cur_iteration * dt * ps , color = '#FF6600' )