code: def set_redraw_lag(self, lag_sec):
          
          self.defer_redraw = (lag_sec > 0.0)
          if self.defer_redraw:
              self.defer_lagtime = lag_sec
docs: Set lag time for redrawing the canvas.
  
          Parameters
          ----------
          lag_sec : float
              Number of seconds to wait.